You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
496 B
36 lines
496 B
; STATIC: "REFRACTTINTTEXTURE" "0..1" |
|
; STATIC: "NORMALMAPALPHA" "0..1" |
|
|
|
ps.1.1 |
|
|
|
; t0: |
|
; texture: dudv map |
|
; texcoords: dudvmap texcoords |
|
; t1: |
|
; texture: refraction render target |
|
; texcoords: |
|
|
|
tex t0 ; sample dudv map |
|
texbem t1, t0 ; refraction |
|
|
|
#if REFRACTTINTTEXTURE |
|
tex t2 |
|
#endif |
|
|
|
#if NORMALMAPALPHA |
|
tex t3 |
|
#endif |
|
|
|
; refracttint |
|
#if REFRACTTINTTEXTURE |
|
mul_x2 r0, t1, t2 |
|
#else |
|
mov r0, t1 |
|
#endif |
|
|
|
#if NORMALMAPALPHA |
|
mul r0.rgb, r0, c0 + |
|
mov r0.a, t3.a |
|
#else |
|
mul r0.rgb, r0, c0 |
|
#endif
|
|
|