Skip to main content

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
  • 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.

Rendering a Cursor and Adding Objects on Click