hi
i need to read vertex color from my glsl shader, how can i do this?
thanks in advance.
[solved]read vertex color glsl
-
- Competition winner
- Posts: 189
- Joined: Tue Oct 16, 2007 3:53 am
- Location: Indonesia
- Contact:
[solved]read vertex color glsl
Last edited by kornwaretm on Sun Nov 09, 2014 8:33 am, edited 1 time in total.
Re: read vertex color glsl
In your vertex shader, pass gl_Color on.
-
- Competition winner
- Posts: 189
- Joined: Tue Oct 16, 2007 3:53 am
- Location: Indonesia
- Contact:
Re: read vertex color glsl
thanks hendu. vertex color works now. one more question, somehow i can not pass uniform array to glsl shader, any lead on this ?