I just started to play around with with glsl. I would like to know if it's possible to send an array to my vertex shader, eg:
Code: Select all
//.h c++
struct MyLight
{
SColorf color;
vector3df pos;
};
I know how to do it with Direct X 10, but that's not going to help ;P
Code: Select all
//.vert shader
struct SLight
{
vec4 color;
vec3 pos;
};
varying SLight lights[2]