ps.1.1
//tex t0
//tex t1
//tex t2

def c4,0,0,0,-0.425
def c5,0,0,0,0
def c6,0,0,0,0.5

tex t0      ; shadow map
tex t1      ; Normal
tex t2      ; Cubic Normalized Tangent Space Light Direction

sub r0.a, v0.a, c4.a
cnd r1,r0.a,t0,c5
dp3_sat r0, t1_bx2, t2_bx2  ; N.L
mul r0,r0,r1
mad_x2 r0.rgb,r0,v0,c0

