[solved]read vertex color glsl

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
kornwaretm
Competition winner
Posts: 189
Joined: Tue Oct 16, 2007 3:53 am
Location: Indonesia
Contact:

[solved]read vertex color glsl

Post by kornwaretm »

hi
i need to read vertex color from my glsl shader, how can i do this?
thanks in advance.
Last edited by kornwaretm on Sun Nov 09, 2014 8:33 am, edited 1 time in total.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: read vertex color glsl

Post by hendu »

In your vertex shader, pass gl_Color on.
kornwaretm
Competition winner
Posts: 189
Joined: Tue Oct 16, 2007 3:53 am
Location: Indonesia
Contact:

Re: read vertex color glsl

Post by kornwaretm »

thanks hendu. vertex color works now. one more question, somehow i can not pass uniform array to glsl shader, any lead on this ?
Post Reply