PDA

View Full Version : reflection mapping with spherical maps



def
03-31-2005, 06:20 AM
I am looking for GLSL code samples to reference a spherical texture map (longitude/latitude) as a reflection map.
This should work the same way as with cubemaps, only the reflection vector needs to be converted to the longitude and latitude uv coordinates.
I know spherical maps are not very efficient... cubemaps are not an option for me here, though.
Thanks for any hints.