GLSL array of structures

This topic contains 2 replies, has 2 voices, and was last updated by  christiancoder 6 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30449

    I was trying to pass my light params as an array of uniform structures. This it seems is supported by shader compiler/linker as I wasn’t getting any errors when trying to retrieve the uniform locations, but it was causing all kinds of undefined behavior. Breaking up the array of structures into separate arrays for each member has solved all of the instability problems. Is this a known issue? I remember I had a similar problem with GLSL years ago that eventually lead me to use Cg.   

    #34748

    Slion
    Member

    It should be supported. On which platform/hardware were you trying to run this?

    #34749

    iPad 4.2.

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.