• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FRAG
2
3DCL IN[0], COLOR, LINEAR
4DCL OUT[0], COLOR
5
6DCL TEMP[0]
7
8IMM FLT32 { 1.0, 0.0, 0.0, 0.0 }
9IMM FLT32 { 1.5, 0.0, 0.0, 0.0 }
10
11ADD TEMP[0], IN[0], IMM[0]
12RSQ TEMP[0].x, TEMP[0].xxxx
13SUB OUT[0], TEMP[0], IMM[1]
14
15END
16