Texture masks using a shader

  • How do shaders work in PlayCanvas?
  • Why use a shader to mask a texture?
  • How to use a mask in a shader?
  • How to animate a texture?
  • How to change the shader parameters in real time?

In this tutorial we will learn how to use shaders to mask and animate textures in real time. Shaders are a powerful feature that allow low level access of the rendering pipeline. Knowledge of writing shaders to program the output of the GPU allows the developer to easily extend a graphics engine.