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 3 of 3

Thread: vec3 R; int i = 2; R[i] .. will it be supported ???

  1. #1
    Intern Newbie
    Join Date
    Apr 2004
    Posts
    45

    vec3 R; int i = 2; R[i] .. will it be supported ???

    .. will indexed access to variables be supported ?? ..

  2. #2
    Intern Contributor
    Join Date
    Apr 2004
    Location
    Bellevue, WA
    Posts
    73

    Re: vec3 R; int i = 2; R[i] .. will it be supported ???

    According to the GLSL spec you should (issue 16

  3. #3
    Intern Contributor
    Join Date
    Apr 2004
    Location
    Bellevue, WA
    Posts
    73

    Re: vec3 R; int i = 2; R[i] .. will it be supported ???

    According to the GLSL spec it is available (issue 16, pg 73). This is really necessary since indexing like that is required for skinning (I think...).

    Does this not work? If not, does anyone know if they drivers are just missing something.

Posting Permissions

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