ps_2_0
//   c2.y - object id
// tex0,tex1 - ray orig,dir
// tex2 - render result
dcl t0
dcl_2d s0
dcl_2d s1
dcl_2d s2
def c8,256,-128,100,128
texld r2,t0,s2
sub r2.b,r2.b,c2.y
abs r2.b,r2.b
mul r3,r2.b,c8.y
texkill r3                    // handle only the specified object
texld r0,t0,s0
texld r1,t0,s1
mul r2.g,r2.g,c8.z
mul r1,r1,r2.g
add r1,r1,r0
mov oC0,r1
