Back to index
Procedural Textures
Exercises
Replace the
checkboard()
function call in
main()
with
france()
. Then implement the
Flag of France
as a procedural texture.
Implement the function
sweden()
and have it generate the
Flag of Sweden
.
Come up with your own crazy procedural texture!
Inputs
Uniforms
float time
// elapsed time
Render window
Compile log
Compile
Fragment shader