xps.1.1 ; Inputs: ; t0 = surface normal (renormalize and dot with eye) ; t1 = eye direction ; c0 = base blob color ; c1 = ambient color ; c2 = alpha_scale tex t0 tex t1 ; is probably normalized anyway, the eye position hardly changes wrt the small bloblets dp3 r0, t0_bx2, t1_bx2 mov r1, r0_sat mul r0, 1-r1, 1-r1 mul r0.rgba, 1-r0, c0.rgba add r0.rgb, r0.rgb, c1.rgb mul r0.a, r0.a, c2.a