Very Simple Shader Question

Jan 7, 2013 at 5:45pm

Very Simple Shader Question

Hi everyone, I am using an “explosion” jxs file posted by Rob Ramirez here a couple days ago. I went into the code to try and add a very basic adjustable RGBA functionality, but keep on receiving Error 0:67 undeclared identifier. I essentially just tried to mimic his method of creating parameters, but am clearly missing a step. If someone could tell me why the variables Rcolor, Gcolor,Bcolor, and Acolor receive the Error 0:67 undeclared identifier error, that would be great. Thx for your time :)


Jan 7, 2013 at 8:32pm

These:


uniform float Rcolor;
uniform float Gcolor;
uniform float Bcolor;
uniform float Acolor;

Need to go in the fragment shader, not the vertex shader like you have them.

#237515
Jan 8, 2013 at 2:54pm

great thx!

#237516

You must be logged in to reply to this topic.