I made a material that mixes two shaders using an empty which acts like a kind of mask for those shaders. If I move my empty up, there will be more blue shader. If I move it down, there will be more transparent shader.
My goal here is to make a glass that would be filled with water; using a single mesh with this special material, and moving my empty to "fill" the glass.
It is working quite well, but... As the material goes along the mesh, it shows up like if the mesh missed a face; has its "cap not filled". I was wondering if it was possible to tweak my blue shader so the mesh would always seems closed ?