!!ARBfp1.0
# cgc version 2.0.0016, build date Jun  5 2008
# command line args: -profile arbfp1
# source file: localnormalmap.cg
#vendor NVIDIA Corporation
#version 2.0.0.16
#profile arbfp1
#program lit1_f
#semantic lit1_f.lightambient
#semantic lit1_f.lightdiffuse
#semantic lit1_f.oLightpos
#semantic lit1_f.oCampos
#semantic lit1_f.normalmap : TEXUNIT0
#var float2 IN.tex0 : $vin.TEXCOORD0 : TEX0 : 0 : 1
#var float4 IN.oPos : $vin.TEXCOORD1 : TEX1 : 0 : 1
#var float4 lightambient :  : c[0] : 1 : 1
#var float4 lightdiffuse :  : c[1] : 2 : 1
#var float4 oLightpos :  : c[2] : 3 : 1
#var float4 oCampos :  : c[3] : 4 : 1
#var sampler2D normalmap : TEXUNIT0 : texunit 0 : 5 : 1
#var float4 lit1_f : $vout.COLOR : COL : -1 : 1
#const c[4] = 0.5 1 0 2
#const c[5] = 8
PARAM c[6] = { program.local[0..3],
		{ 0.5, 1, 0, 2 },
		{ 8 } };
TEMP R0;
TEMP R1;
TEMP R2;
ADD R1.xyz, -fragment.texcoord[1], c[2];
DP3 R0.w, R1, R1;
RSQ R1.w, R0.w;
ADD R0.xyz, -fragment.texcoord[1], c[3];
DP3 R0.w, R0, R0;
MUL R1.xyz, R1.w, R1;
RSQ R0.w, R0.w;
MAD R0.xyz, R0.w, R0, R1;
MUL R2.xyz, R0, c[4].x;
DP3 R0.w, R2, R2;
RSQ R0.w, R0.w;
TEX R0.xyz, fragment.texcoord[0], texture[0], 2D;
ADD R0.xyz, R0, -c[4].x;
MUL R0.xyz, R0, c[4].w;
MUL R2.xyz, R0.w, R2;
DP3_SAT R0.w, R0, R1;
DP3_SAT R0.x, R0, R2;
SLT R0.y, c[4].z, R0.w;
ABS R0.y, R0;
MUL R1, R0.w, c[1];
POW R0.x, R0.x, c[5].x;
CMP R0.y, -R0, c[4].z, c[4];
CMP R0.x, -R0.y, c[4].z, R0;
ADD R1, R1, c[0];
ADD result.color, R1, R0.x;
END
# 25 instructions, 3 R-regs
