Hello Guest

Environment map in GLSL?

  • 2 Replies
  • 7848 Views
Environment map in GLSL?
« 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 :)

Environment map in GLSL?
« Reply #1 on: August 07, 2006, 04:12:19 »
Never mind, the problem is solved.. :)

*

Offline Matzon

  • *****
  • 2242
Environment map in GLSL?
« Reply #2 on: August 07, 2006, 05:56:58 »
in the interest of future solution seekers, how did you solve it ?