Multitexturing with samplerCube

Hello,

How do I send a cube texture to the fragment shader?
I’m doing the following but it’s not working:

glUniform1iARB(_envMapLoc, 0); // Tex unit 0

// Create Cube Map texture (GLuint = 0)
CubeMap *cubeMap = new CubeMap(Image(“Models//SkyFront.tga”),
Image(“Models//SkyBack.tga”),
Image(“Models//SkyLeft.tga”),
Image(“Models//SkyRight.tga”),
Image(“Models//SkyTop.tga”),
Image(“Models//SkyTop.tga”));

// Send texture (GLuint=0) to shader to tex unit 0
glActiveTextureARB(GL_TEXTURE0_ARB);
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, 0);

Am I missing something?
Thanks.

Sorry!!! Problem solved.
Thanks.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.