!!ARBfp1.0
# ARB_fragment_program generated by NVIDIA Cg compiler
# cgc version 1.0.0002, build date Dec 18 2002  12:39:16
# command line args: -profile arbfp1
#vendor NVIDIA Corporation
#version 1.0.02
#profile arbfp1
#program main
#semantic main.basetex
#semantic main.normtex
#semantic main.bias
#semantic main.diffuse
#semantic main.specular
#semantic main.ambient
#semantic main.inv_modelview
#var float4 pixel.texcoord0 : $vin.TEXCOORD0 : TEXCOORD0 : 0 : 1
#var float4 pixel.texcoord1 : $vin.TEXCOORD1 : TEXCOORD1 : 0 : 1
#var float4 pixel.texcoord2 : $vin.TEXCOORD2 : TEXCOORD2 : 0 : 1
#var float4 pixel.texcoord3 : $vin.TEXCOORD3 : TEXCOORD3 : 0 : 1
#var float4 pixel.texcoord4 : $vin.TEXCOORD4 : TEXCOORD4 : 0 : 1
#var sampler2D basetex :  : texunit 0 : 1 : 1
#var sampler2D normtex :  : texunit 1 : 2 : 1
#var float4 bias :  :  : 3 : 1
#var float4 diffuse :  : c[0] : 4 : 1
#var float4 specular :  : c[1] : 5 : 1
#var float4 ambient :  :  : 6 : 1
#var float4x4 inv_modelview :  : c[2], 4 : 7 : 1
#var float4 color : $vout.COLOR0 : COLOR0 : -1 : 1
PARAM u0 = program.local[0];
PARAM u1 = program.local[1];
PARAM u2 = program.local[2];
PARAM u3 = program.local[3];
PARAM u4 = program.local[4];
PARAM u5 = program.local[5];
PARAM c0 = {1, 1, 1, 1};
PARAM c1 = {0, 0, 0, 0};
PARAM c2 = {2, 2, 2, 2};
TEMP R0;
TEMP R1;
TEMP R2;
TEMP R3;
TEMP R4;
TEX R0, fragment.texcoord[0].xyxx, texture[1], 2D;
TEX R1, fragment.texcoord[0].xyxx, texture[0], 2D;
MUL R1, u0, R1;
MOV R2.x, c0.x;
MAD R0.xyw, R0, c2.x, -R2.x;
MOV R0.z, c1.x;
MOV R2.xyw, R0.xyxw;
DP3 R0.x, R0.xyzx, R0.xyzx;
MOV R2.z, R0.x;
RSQ R0.x, R2.z;
RCP R0.x, R0.x;
MUL R0.x, c0.x, R0.x;
RCP R0.x, R0.x;
MUL R0.x, c0.x, R0.x;
MOV R2.z, R0.x;
DP3 R0.x, fragment.texcoord[4].xyzx, R2.xyzx;
DP3 R3.x, fragment.texcoord[3].xyzx, R2.xyzx;
MOV R0.y, R3.x;
DP3 R3.x, fragment.texcoord[2].xyzx, R2.xyzx;
MOV R0.z, R3.x;
MOV R0.w, c1.x;
MOV R3.x, u2.w;
MOV R3.y, u3.w;
MOV R3.z, u4.w;
MOV R3.w, u5.w;
ADD R3, R3, -fragment.texcoord[1];
DP4 R4.x, R0, R0;
RSQ R4.x, R4.x;
RCP R4.x, R4.x;
MUL R4.x, c0.x, R4.x;
DP4 R4.y, R3, R3;
RSQ R4.y, R4.y;
MUL R3, R4.y, R3;
MOV R0.w, R4.x;
DP3 R4.x, R0.xyzx, R3.xyzx;
MUL R4.x, R4.x, c2.x;
MAD R3.xyz, R4.x, R0, -R3;
DP4 R3.w, R2, R2;
RSQ R3.w, R3.w;
MUL R4.xyz, R3.w, R2;
DP3 R3.x, R3.xyzx, R4.xyzx;
DP3 R0.x, R0.xyzx, R4.xyzx;
MAX R3.x, c1.x, R3.x;
POW R3.x, R3.x, u1.w;
MAX R0.x, c1.x, R0.x;
DP4 R0.y, R2, R2;
ADD R2, c0.x, -R0.y;
MUL R2, u0, R2;
MUL R0, R2, R0.x;
MOV R2.w, u0.w;
MUL R2, u1, R2.w;
MUL R2, R2, R3.x;
MAD result.color, R1, R0, R2;
END
# 53 instructions, 5 R-regs, 0 H-regs.
# End of program
