ps_1_1 texkill t0 // t1 // If any of t0.xyz is less than zero, we're culling out this pixel tex t1 // t1 // sample the texture mul r0.rgb, t1, v0 // a1 // modulate the texture sample by the diffuse, ambient and shadow color. mul r1.rgb, c0, v1 // a1 // Fog Color * Scaled Dist from center mad r0.rgb, r0, 1-v1, r1 // a1 // (Diffuse Color * 1-Dist from Center) + Scaled Fog +mov r0.a, t1.a // a0 // co-issue setting output value to the texture alpha // Total Instructions = 2 (texture) + 3 (arithmetic)