Can't compile shader with struct uniform #30

Open
faveris opened this Issue May 17, 2013 · 0 comments

1 participant

@faveris

Sample shader:

struct Foo
{
float bar1;
float bar2;
};

uniform Foo uFoo;

void main()
{
gl_Position.x = uFoo.bar1;
gl_Position.y = uFoo.bar2;
}

Output will be:

{
"info":"\nstructs still exist.\n\nstructs still exist.\n"
}

I can't understand what does this error mean. Could it be that struct uniforms isn't supported at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment