!!ARBvp1.0
# cgc version 1.5.0014, build date Sep 18 2006 20:36:59
# command line args: -profile arbvp1
# source file: Lighting.cg
#vendor NVIDIA Corporation
#version 1.5.0.14
#profile arbvp1
#program v_L1p
#semantic v_L1p.WVPMatrix
#semantic v_L1p.WMatrix
#semantic v_L1p.CameraModelPosition
#semantic v_L1p.MaterialEmissive
#semantic v_L1p.MaterialAmbient
#semantic v_L1p.MaterialDiffuse
#semantic v_L1p.MaterialSpecular
#semantic v_L1p.Light0ModelPosition
#semantic v_L1p.Light0Ambient
#semantic v_L1p.Light0Diffuse
#semantic v_L1p.Light0Specular
#semantic v_L1p.Light0Attenuation
#var float3 kModelPosition : $vin.POSITION : POSITION : 0 : 1
#var float3 kModelNormal : $vin.NORMAL : NORMAL : 1 : 1
#var float4 kClipPosition : $vout.POSITION : HPOS : 2 : 1
#var float4 kVertexColor : $vout.COLOR : COL0 : 3 : 1
#var float4x4 WVPMatrix :  : c[1], 4 : 4 : 1
#var float4x4 WMatrix :  : c[5], 4 : 5 : 1
#var float3 CameraModelPosition :  : c[9] : 6 : 1
#var float3 MaterialEmissive :  : c[10] : 7 : 1
#var float3 MaterialAmbient :  : c[11] : 8 : 1
#var float4 MaterialDiffuse :  : c[12] : 9 : 1
#var float4 MaterialSpecular :  : c[13] : 10 : 1
#var float3 Light0ModelPosition :  : c[14] : 11 : 1
#var float3 Light0Ambient :  : c[15] : 12 : 1
#var float3 Light0Diffuse :  : c[16] : 13 : 1
#var float3 Light0Specular :  : c[17] : 14 : 1
#var float4 Light0Attenuation :  : c[18] : 15 : 1
#const c[0] = 0
PARAM c[19] = { { 0 },
		program.local[1..18] };
TEMP R0;
TEMP R1;
TEMP R2;
ADD R0.xyz, vertex.position, -c[14];
DP3 R0.w, R0, R0;
RSQ R1.w, R0.w;
ADD R1.xyz, -vertex.position, c[9];
DP3 R0.w, R1, R1;
MUL R2.xyz, R1.w, R0;
RSQ R0.w, R0.w;
MAD R1.xyz, R0.w, R1, -R2;
DP3 R0.w, R1, R1;
RSQ R0.w, R0.w;
MUL R1.xyz, R0.w, R1;
DP3 R1.x, vertex.normal, R1;
SLT R0.w, c[0].x, R1.x;
ABS R1.y, R0.w;
DP3 R0.w, vertex.normal, R2;
SLT R1.w, c[0].x, -R0;
SGE R1.y, c[0].x, R1;
MUL R1.y, R1.w, R1;
POW R1.x, R1.x, c[13].w;
MAD R2.x, -R1, R1.y, R1;
MUL R1.xyz, R0.y, c[6];
ABS R0.y, R1.w;
SGE R1.w, c[0].x, R0.y;
MAD R1.xyz, R0.x, c[5], R1;
MAD R1.xyz, R0.z, c[7], R1;
MAD R2.x, -R2, R1.w, R2;
MUL R0.xyz, R2.x, c[13];
MUL R1.y, R1, R1;
MAD R1.x, R1, R1, R1.y;
MAD R1.z, R1, R1, R1.x;
MAD R1.x, R0.w, R1.w, -R0.w;
SLT R1.y, c[0].x, R2.x;
SLT R1.w, c[0].x, R1.x;
RSQ R0.w, R1.z;
MUL R2.w, R1, R1.y;
MOV R2.xyz, c[15];
MUL R1.xyz, R1.x, c[12];
RCP R0.w, R0.w;
MUL R0.xyz, R0, c[17];
MUL R2.xyz, R2, c[11];
MUL R1.xyz, R1, c[16];
MAD R1.xyz, R1.w, R1, R2;
MAD R1.w, R0, c[18].z, c[18].y;
MAD R0.w, R0, R1, c[18].x;
MAD R0.xyz, R0, R2.w, R1;
MUL R1, vertex.position.y, c[2];
RCP R0.w, R0.w;
MAD R1, vertex.position.x, c[1], R1;
MUL R0.w, R0, c[18];
MAD R1, vertex.position.z, c[3], R1;
MAD result.color.xyz, R0.w, R0, c[10];
ADD result.position, R1, c[4];
MOV result.color.w, c[12];
END
# 53 instructions, 3 R-regs
