Home | History | Annotate | Download | only in vertex-shader
      1 VERT
      2 
      3 DCL IN[0]
      4 DCL IN[1]
      5 DCL OUT[0], POSITION
      6 DCL OUT[1], COLOR
      7 
      8 DCL TEMP[0]
      9 
     10 IMM FLT32 { 1.0, 0.0, 0.0, 0.0 }
     11 IMM FLT32 { 1.5, 0.0, 0.0, 0.0 }
     12 
     13 ADD TEMP[0], IN[0], IMM[0]
     14 RCP TEMP[0].x, TEMP[0].xxxx
     15 SUB OUT[0], TEMP[0], IMM[1]
     16 MOV OUT[1], IN[1]
     17 
     18 END
     19