Very Simple Shader Question


    Jan 07 2013 | 5:45 pm
    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 07 2013 | 8:32 pm
      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.
    • Jan 08 2013 | 2:54 pm
      great thx!