Credits to LearningWebGL.com

Please use A, S, D, W keys to spin the cube and Q/E to zoom out/in

Use blending

Alpha level

Use lighting

Directional light:

Direction: X: Y: Z:
Colour: R: G: B:

Ambient light:

Colour: R: G: B: