Vibe Coding Encyclopedia

Level water in a tilted container

In the inner water box, discard the pixel above the world height y = h and paint the back to the surface, so that the surface of the water is always horizontal even if the barrel is tilted.

Category
Shaders

Technical terms · World-space plane clipping (discard) · Back-face cap (gl_FrontFacing) · Liquid in tilted container

Related techniques

Technique document (Korean)