Actually quite a simple question.
Does anyone know what specific shader property that Shurikens “Start Color” and “Color Over Time” functions affect?
Is there a specific name for the property? or is it using something like the MainTexture colors?
(and how would I implement it in a custom shader)
I figured it out. Shuriken is changing Vertex colors. I did it like this:
Properties
{
_TintColor ("Main Color", color) = (1,1,1,1)
}
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
float4 _TintColor;
struct v2f
{
float4 color : COLOR;
}
half4 frag( v2f i ) : COLOR
{
//Use i.color here
}
struct appdata_t
{
float4 color : COLOR;
}
v2f vert (appdata_t v)
{
v2f o;
o.color = v.color;
return o;
}