Dear GLSL Programmers,
I have defined an array of structures.
struct coord { float x, float y} coordinates[225] ;
Now I want to pass this array of structs to my shader code. and also how to define this structre in my shader program.
Thanks in advance
Rajesh.R
oc2k1
2
you can’t pass structures as uniform or attribute to a shader, for two floats use vec2 instead…
just a matter of reading the manual really.
innocent question here, innocent question there…
I think iris_raj is clandestinly getting the community to build him a doomsday machine.
Zengar
5
Also notice how he is never posting in the same thread again ^^ Well, I am curious how the things will develop.
system
Closed
6
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.