Example 6: Shadow Mapping


A WebGL-enabled browser is needed to run the examples.
Refer to this page for a quick HOWTO.


Description

This demo uses the a RGBA texture render target to encode depth information for shadow mapping.
The model is imported from an Alias|Wavefront OBJ file: a low resolution model is loaded and displayed while waiting for the high resolution data to arrive (it may take a while).

Controls

LeftMouseButton + MouseMove : Rotate
MiddleMouseButton or (Shift + LeftMouseButton) + MouseMove : Pan
MouseWheel : Scale
Shift + MouseWheel : Dolly
Shift+R : Reset Trackball

Log