1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
FRAG
PROPERTY FS_COLOR0_WRITES_ALL_CBUFS 1
DCL IN[0], COLOR, COLOR
DCL IN[1], GENERIC[0], PERSPECTIVE
DCL OUT[0], COLOR
DCL SAMP[0]
DCL TEMP[0..1], LOCAL
0: MOV TEMP[0].xy, IN[1].xyyy
1: MOV TEMP[0].w, IN[1].wwww
2: TXP TEMP[0], TEMP[0], SAMP[0], 2D
3: MUL TEMP[1].xyz, TEMP[0], IN[0]
4: MOV TEMP[1].xyz, TEMP[1].xyzx
5: MUL TEMP[0].x, IN[0].wwww, TEMP[0].wwww
6: MOV TEMP[1].w, TEMP[0].xxxx
7: MOV OUT[0], TEMP[1]
8: END
|