3D Graphics Run with WebGL! Read the E-Book

WebGL Scenes: Responsive Web Design

Normal Map with Directional Light

Normal Map and Shaders Provide Light and Shadow

Swipe to Rotate the Prism

This example applies a directional light to a prism with a normal map rather than normal attributes. Upload a texture map rather than vertices, to the GPU. The red, green, and blue values represent X, Y, and Z normal coordinates.

WebGL Lighting E-Book Screen Shots
Copyright © 2015 Seven Thunder Software. All Rights Reserved.