So I am getting a syntax error in my shader’s compiled code:
SubProgram "xbox360 " {
Keywords { }
Bind "vertex" Vertex
Vector 0 [$_color] //<--RIGHT HERE
My properties:
Properties
{
twisting("twisting",Float) = 0.5
_color("color",Color) = (1,1,1,1)
}
I don’t know whats wrong, pretty new to CG.
I don’t really use much shader lab, what is the Vector command for? Can’t find any documentation for it.
Aras
January 14, 2013, 1:56pm
3
The error seems to come somewhere from your actual Cg/HLSL code. How do you declare “color” variable there? The compiler seems to think it’s named “$_color” which is not a very valid name.
Yeah I noticed that. But I really don’t know enough about CG yet to figure out why its thinking its $_color. And only for Xbox 360.
The Vector command is just a way to hold points. Essentially it is an array (very loosely, but best “programming” way I can think to describe it).