ps.1.4 

def c0, 0.5f, 0f, 0f, 1f
def c1, 0.333f, 0.333f, 0.333f, 1f

texld r0, t0 

texld r1, t1 
texld r2, t2 


// Well, since comparing RGB didn't work before feeding the dogs...
// Let's do R*G*B
// dp3 r5, r0, c1
// That didn't work...so I copied the toon shader...

sub r3, r0, r1
dp3_d2_sat r3.rgb, r3, r3

sub r4, r0, r2
dp3_d2_sat r4.rgb, r4, r4

lrp r0.rgb, r3, r1, r0
lrp r0.rgb, r4, r2, r0


phase

texld r5, t0

texld r1, t3
texld r2, t4

sub r3, r5, r1
dp3_d2_sat r3.rgb, r3, r3

sub r4, r5, r2
dp3_d2_sat r4.rgb, r4, r4

lrp r5.rgb, r3, r1, r5
lrp r5.rgb, r4, r2, r5

lrp r0.rgb, c0.r, r0, r5
+mov r0.a, c0.a