I want a pixel shader om AGAL that instead of simply copying the color passed to it from the vertex shader to the output, only copies the red component from the passed color and sets the green and blue components to zero. In pseudo code:
temp = 0
temp.red = in.red
temp.alpha = in.alpha
out = temp
I can't figure out how to write this in AGAL. The following doesn't do it:
mov ft0.ra, v0.ra
mov oc, ft0
How can I get the result I want?