home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Igromania 2005 May
/
Igromania_2005-05.iso
/
DemosThemes2
/
Demo1944BattleOfTheBulge
/
demo1944english.exe
/
Inf
/
water12-shadow.ps.ati
< prev
next >
Wrap
Text File
|
2003-11-18
|
609b
|
37 lines
ps_2_0
; c0 = mastercolor
; c1 = ambient color
def c2, 1, 1, 1, 1
def c3, 0, 0, 0, 0
dcl v0 ; vertex color
dcl v1 ; specular color
dcl_2d s0 ; shadow map
dcl_2d s1 ; diffuse
dcl t0.xyzw ; shadow map coord
dcl t1.xy ; diffuse coord
; shadow map kod itt kezdodik
rcp r0, t0.w ; r0.w=1/t0.w
mul r1, t0, r0 ; r1=t0/t0.w
texld r0, r1, s0 ; r0.r = tarolt z
sub r1, r1.z, r0.r
; EZT NEM LEHETNE GYORSABBAN ????
mov r2, c3
cmp r0, r1, r2, c2
; itt van vege. eredmeny r0-ban
texld r1, t1, s1
mul r0.rgb, r0, r1
mul r0.rgb, r0, v1
mov r0.a, v0.a
mul r0, r0, c0
mov oC0, r0