Shaders Attributes

Hi!
I am a total newbie to Shaders. Following OF tutorial there are attributes pased to the Vertex Shader and from that to the Fragment Shader but that are not declared in setUniform1f on the OF program
Where can I find a list of those?
Thanks!!!
D!

Hi! In the first and second chapter of this guide you can find informations about built-in attributes:

Yep, note the difference between attributes and uniforms. Also, notice that OF can some default attributes for you if you call ofShader::bindDefaults. Then you can access those from your shaders

The list, so that you can access them through your shaders is:

static const string COLOR_ATTRIBUTE="color";
static const string POSITION_ATTRIBUTE="position";
static const string NORMAL_ATTRIBUTE="normal";
static const string TEXCOORD_ATTRIBUTE="texcoord";

Setup must be done in the following order:

// these once
ofShader::setupShaderFrom*(...)
ofShader::bindDefaults()
ofShader::linkProgram()

// on draw
ofShader::begin();
ofShader::setUniform*(...);
ofShader::end();

Amazing answers, thanks a lot!
Sorry for messing with this :smile: