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 access structures in glsl?

  1. #1
    Intern Contributor
    Join Date
    Jun 2013
    Posts
    69

    how to access structures in glsl?

    hi i am reading about multiple light sources and the book uses a structure in the fragment shader to hold the properties of the lights. I want to pass multiple structures with different values to a single structure array. anyobody know how? also how would you do it with one structure? thanks

  2. #2
    Intern Contributor
    Join Date
    Jun 2013
    Posts
    69
    come on somebody has to know. anybody? thanks

Posting Permissions

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