14 lines
307 B
Plaintext
14 lines
307 B
Plaintext
void main (
|
|
uniform sampler2D tex,
|
|
uniform float4 cadd,
|
|
uniform float4 cmul,
|
|
|
|
float4 color : COLOR,
|
|
float2 tc0 : TEXCOORD0,
|
|
|
|
out float4 ocolor : COLOR)
|
|
{
|
|
float4 c = tex2D (tex, tc0);
|
|
ocolor = lerp (float4(1,1,1,1), c * cmul + cadd, c.a);
|
|
}
|