Skip to main content

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.

Question 1 of 22

A fragment shader runs:

Question 2 of 22

In GLSL, a color like gl_FragColor is a vec4 of:

Question 3 of 22

gl_FragCoord.xy / u_resolution.xy gives you:

Question 4 of 22

mix(a, b, t) returns:

Question 5 of 22

A shaping function like pow(x, 3.0) or smoothstep(a, b, x) is used to:

Question 6 of 22

To draw a filled circle, a shader typically:

Question 7 of 22

The difference between step() and smoothstep() is:

Question 8 of 22

To animate a shader over time you use:

Question 9 of 22

To make a shader react to the pointer, you use:

Question 10 of 22

fract(st * 3.0) is used to:

Question 11 of 22

A Truchet tiling turns an ordered grid into a connected maze by:

Question 12 of 22

To rotate what a shader draws, you:

Question 13 of 22

GLSL has no rand(), so shaders get a repeatable random value by:

Question 14 of 22

Noise is used in shaders to:

Question 15 of 22

fBm (fractal Brownian motion) works by:

Question 16 of 22

Cellular (Voronoi) noise is built by:

Question 17 of 22

To sweep smoothly through the rainbow, you vary the:

Question 18 of 22

Two shapes are values (1 inside, 0 outside). To UNION them you use:

Question 19 of 22

A regular polygon (triangle, hexagon) is drawn in a shader from:

Question 20 of 22

A shader reads a pixel from an image with:

Question 21 of 22

Grayscale collapses a color to one brightness value with:

Question 22 of 22

Domain warping — the trick behind fire, smoke and flowing clouds — is:

Wayline
Tools, assets and tutorials for game makers
Get started