Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: how to lookup cube map texture array in GLSL

  1. #1
    Intern Contributor
    Join Date
    Jun 2011
    Posts
    82

    Question how to lookup cube map texture array in GLSL

    My graphics driver supports OpenGL 4.2

    In the fragment program, I use the following code to lookup a cube map array:
    Code :
    #version 420
     
    uniform samplerCubeArray cubes;
     
    ...
     
    texture(cubes, vec4(direction, depth));
    Then I was reminded to enable the following extension:
    Code :
    #extension GL_ARB_texture_cube_map_array : enable

    I compiled and ran, but it still said "unable to find compatible overloaded function 'texCUBEARRAY(samplerCubeArray, vec4)'".
    Is the function texCUBEARRAY a funcion of Cg? What should I do?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,726
    Then I was reminded to enable the following extension:
    Why? It's a core feature of GL 4.2. By declaring `#version 420`, you automatically have it.

    What should I do?
    Sounds like a driver bug. Contact NVIDIA about it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •