Fragment Shader Point Light
Face Mapped Cube
Swipe Up, Down, Left, and Right, to Move the Cube
View this example of a point light on a texture mapped cube. Lighting helps define the shape of the cube. Each face of the cube is mapped edge to edge with a photograph of the desert. The fragment shader declares constants with light location, light color, and ambient color.