For example, I want to output red color in fragment shader.
HLSL:
return float4(1,0,0,1);
asm:
def c0, 1, 0, 0, 1
mov oC0, r0
How to implement this in AGAL?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you have to pass in the red constant via:
unfortunately, you can’t define a constant in agal.