Projector Light Maps & Information
This tutorial briefly explains how to apply WebGL light maps. Two texture maps, applied to the eye over Earth example, are included.
Light maps provide a quick and uncomplicated method to render lighting. Load two maps to render one sprite. The first map textures the sprite. The second map provides stationary lighting. When the sprite transforms, light continues to shine from the same location. In other words, move the sprite, the light doesn't move. Rotate the sprite, the light doesn't rotate, just as lights in a room won't move, if you rotate a book.
The image for the eye light map
was generated with a Photoshop wing ding, some gradients and filters.
The light map resembles an eye. The light map also includes
some light and shadow to give form to the shape of Earth.
Consider creating light maps for light alone or light and texture.
The eye over Earth example,
applies the eye as a
projector map, as if the eye were projected
on the earth.
The image for the earth texture map was applied to a sphere. NASA generated the original earth map. Seven Thunder Software modified the texture map with Photoshop.
Eye Light Map
Lighting for the sphere of the earth plus an eye projected onto the earth.
Earth Texture Map
The globe, originally created by NASA, was modified with Photoshop, then mapped to a sphere.
This tutorial briefly explained how to apply WebGL light maps. Two texture maps, applied to the eye over Earth example, were included.