A Fragment Program
¡
¡
float3 SinWave(float3 tex : TEXCOORD0) : COLOR {
return sin(tex.x);
}
Can return color output (different from previous vertex program).
The program procedurally generates a sin wave w.r.t. x.