Environment map in GLSL?

Started by blue_tomato, August 06, 2006, 16:58:25

Previous topic - Next topic

blue_tomato

Environment mapping in GLSL should be very easy, by using the textureCube method and the samplerCube data type.

However, no matter how I try, I cant seem to initialize the samplercube variable from LWJGL?? :(

I tried to set it the same way as I set normal sampler2D data objects (which works fine), but when loading the samplerCube variable with a texture unit pointing to a 256*6,256 texture with my cube planes, I only get black... Checked and double checked everything?

Anyone has an idea of how to do this correctly?

Thanks :)

blue_tomato

Never mind, the problem is solved.. :)

Matzon

in the interest of future solution seekers, how did you solve it ?