ps.2.0

// This shader clips all pixels that are outside uv [0,0] - [1,1]
// A tfactor rgba is expected to be loaded into c0 register

def c1, 1.0, 1.0, 1.0, 1.0
dcl t0
dcl_2d s0

texkill t0
add r0, c1, -t0
texkill r0
texld r0, t0, s0
mul r0, c0, r0
mov oC0, r0