Masking Part 5: Masking in GLSL for WebGL

In this episode we talk about how to achieve masking in GLSL the shading language used to render content in WebGL. We discuss how to manipulate colors in fragment shaders as well as the alpha channel. We also discuss using vertex coordinates with UV’s and bringing in textures as masks. We also explore examples of how masking can be used to make interesting effects in WebGL. Download the demo files here:
Back to Top