Sphere Map Math
Mapping Reflection to Texture
First, compute eye-space reflection vector
Second, map 3D vector to 2D texture coordinate
Project 3D reflection vector (rx, ry, rz) to 2D
Map 2D vector to (s,t) texture coordinate range
Previous slide
Next slide
Back to first slide
View graphic version