Example Scene 0 Deep Dive:
Terrain
info
Here we will see how to do the following:
- Use multiple textures for different parts of the terrain
- This works by setting multiple
sampler2D
uniforms in our terrain shader
- This works by setting multiple
- Control what texture is used for what part of the scene with a slider
- We will do this by connecting a uniform in our terrain shader to an app state slider.