1 FRAG 2 3 DCL IN[0], COLOR, LINEAR 4 DCL IN[1], FACE, CONSTANT 5 DCL OUT[0], COLOR 6 DCL TEMP[0] 7 IMM FLT32 { 0.5, 1.0, 0.0, 0.0 } 8 9 MUL TEMP[0], IN[1].xxxx, IMM[0].xxxx 10 ADD TEMP[0], TEMP[0], IMM[0].yyyy 11 12 MOV OUT[0], TEMP[0] 13 14 END 15