WebGL Simple Lighting on a Cube

Swipe to Spin the Cube

Shaders apply lighting. Shaders brighten vertices with higher values along the Y and Z axes. They also also darken vertices with higher values along the X axis.

More WebGL Lighting Examples!

Copyright © 2015 Seven Thunder Software. All Rights Reserved.