//CGVER1.0
//var float4 Ambient :  : c[0] : 6 : 1
//var float4 Color : $vout.COLOR : COLOR : -1 : 1
ps.1.1
        def c2, 0.5f,0.5f,0.5f,1.0f 
        def c3, 0.0f,1.0f,0.0f,0.0f 

        tex t0;
        tex t1;
        tex t2;
        tex t3;
        
        dp3 r1.rgb, c3, v1;
        lrp r0.rgb, r1, t2, c2;      // 2 layer

        lrp r1.rgb, v0.a, t3, c2;    // 3 layer
        +mov r1.a, v0.b;

        mul_x2 r0.rgb, r0, r1;

        lrp r1.rgb, r1.a, t0, c2;    // 0 layer
        +mov r1.a, v1.b;

        mul_x2 r0.rgb, r0, r1;
        lrp r1.rgb, r1.a, t1, c2;    // 1 layer
        mul_x2 r0.rgb, r0, r1;
        +mov r0.a, c2.a
// 10 instructions
// End of program
