Graded quiz
Answer all questions to see your score. Score 70% or higher to earn your certificate. You'll get the correct answer and an explanation as you go.
A fragment shader runs:
In GLSL, a color like gl_FragColor is a vec4 of:
gl_FragCoord.xy / u_resolution.xy gives you:
mix(a, b, t) returns:
A shaping function like pow(x, 3.0) or smoothstep(a, b, x) is used to:
To draw a filled circle, a shader typically:
The difference between step() and smoothstep() is:
To animate a shader over time you use:
To make a shader react to the pointer, you use:
fract(st * 3.0) is used to:
A Truchet tiling turns an ordered grid into a connected maze by:
To rotate what a shader draws, you:
GLSL has no rand(), so shaders get a repeatable random value by:
Noise is used in shaders to:
fBm (fractal Brownian motion) works by:
Cellular (Voronoi) noise is built by:
To sweep smoothly through the rainbow, you vary the:
Two shapes are values (1 inside, 0 outside). To UNION them you use:
A regular polygon (triangle, hexagon) is drawn in a shader from:
A shader reads a pixel from an image with:
Grayscale collapses a color to one brightness value with:
Domain warping — the trick behind fire, smoke and flowing clouds — is: