View Full Version : Passing array of structures to GLSL

06-11-2007, 03:56 AM
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

06-11-2007, 04:58 AM
you can't pass structures as uniform or attribute to a shader, for two floats use vec2 instead...

06-11-2007, 08:01 AM
just a matter of reading the manual really.

06-11-2007, 04:42 PM
innocent question here, innocent question there...

I think iris_raj is clandestinly getting the community to build him a doomsday machine.

06-12-2007, 02:41 AM
Also notice how he is never posting in the same thread again ^^ Well, I am curious how the things will develop.