Inventors:
David L. Morgan - Mountain View CA
Mark S. Peercy - Sunnyvale CA
Assignee:
Microsoft Corporation - Redmond WA
International Classification:
G06T 1560
Abstract:
A method, system, and computer program product are provided for multi-pass bump-mapping into an environment map. At least two passes are made through a hardware rasterizer to bump map into an environment map. In the first pass, a lighting equation is overloaded. The overloaded lighting equation represents a reflection vector of a perturbed normal at a pixel position. The reflection vector at a pixel position is then generated according to the overloaded lighting equation. In a second pass, at least one texel in an environment map is accessed based on the generated reflection vector. For example, the generated reflection vector can be used as a look-up into the environment map to access one or more texel samples. In one example implementation, a lighting equation includes a specular material vector Sm, a lighting vector L, and an ambient material vector Am. Such a lighting equation is overloaded by setting the specular material vector Sm to equal a perturbed normal vector Nâ, setting the lighting vector L to equal a viewing vector V at the pixel position, and setting an ambient material vector Am to equal the viewing vector V.