home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Igromania 2005 May
/
Igromania_2005-05.iso
/
DemosThemes2
/
Demo1944BattleOfTheBulge
/
demo1944english.exe
/
Inf
/
water11-shadow.ps.ati
< prev
next >
Wrap
Text File
|
2003-11-18
|
582b
|
35 lines
ps_2_0
; c0 = mastercolor
; c1 = ambient color
def c2, 1, 1, 1, 1
def c3, 4, 4, 4, 4
dcl v0 ; vertex 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, c1
mul r2, r2, c3
cmp r0, r1, r2, c2
; itt van vege. eredmeny r0-ban
texld r1, t1, s1
add r1.rgb, v0, r1
mul r0.rgb, r0, r1
mov r0.a, v0.a
mov oC0, r0