LWJGL Forum

Programming => OpenGL => Topic started by: blue_tomato on August 06, 2006, 16:58:25

Title: Environment map in GLSL?
Post by: blue_tomato on August 06, 2006, 16:58:25
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 :)
Title: Environment map in GLSL?
Post by: blue_tomato on August 07, 2006, 04:12:19
Never mind, the problem is solved.. :)
Title: Environment map in GLSL?
Post by: Matzon on August 07, 2006, 05:56:58
in the interest of future solution seekers, how did you solve it ?