PDA

View Full Version : how to access structures in glsl?



sandbucket
09-16-2013, 07:40 AM
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 :)

sandbucket
09-18-2013, 07:08 AM
come on somebody has to know. anybody? thanks