Back to index

Procedural Textures

Exercises

  1. Replace the checkboard() function call in main() with france(). Then implement the Flag of France as a procedural texture.
  2. Implement the function sweden() and have it generate the Flag of Sweden.
  3. Come up with your own crazy procedural texture!

Inputs

Uniforms

Render window

Fragment shader