ps_2_0
// weighted addition
// out = (c0 * tex0 + c1 * tex1) * c2
// 128/256 encoded values
dcl t0
dcl_2d s0
dcl_2d s1
def c8,128,256,-128,0
texld r0,t0,s0
mad r0,r0,c8.y,c8.y
texld r1,t0,s1
mad r1,r1,c8.y,c8.y
mul r0,r0,c0
mul r1,r1,c1
add r0,r0,r1
mul r0,r0,c2
add r0,r0,c8.x
rcp r1.x,c8.y
mul r0,r0,r1.x
mov oC0,r0
