vs_2_0
// cgc version 1.5.0014, build date Sep 18 2006 20:36:59
// command line args: -profile vs_2_0
// source file: Lighting.cg
//vendor NVIDIA Corporation
//version 1.5.0.14
//profile vs_2_0
//program v_L1d
//semantic v_L1d.WVPMatrix
//semantic v_L1d.CameraModelPosition
//semantic v_L1d.MaterialEmissive
//semantic v_L1d.MaterialAmbient
//semantic v_L1d.MaterialDiffuse
//semantic v_L1d.MaterialSpecular
//semantic v_L1d.Light0ModelDirection
//semantic v_L1d.Light0Ambient
//semantic v_L1d.Light0Diffuse
//semantic v_L1d.Light0Specular
//semantic v_L1d.Light0Attenuation
//var float3 kModelPosition : $vin.POSITION : ATTR0 : 0 : 1
//var float3 kModelNormal : $vin.NORMAL : ATTR1 : 1 : 1
//var float4 kClipPosition : $vout.POSITION : HPOS : 2 : 1
//var float4 kVertexColor : $vout.COLOR : COL0 : 3 : 1
//var float4x4 WVPMatrix :  : c[0], 4 : 4 : 1
//var float3 CameraModelPosition :  : c[4] : 5 : 1
//var float3 MaterialEmissive :  : c[5] : 6 : 1
//var float3 MaterialAmbient :  : c[6] : 7 : 1
//var float4 MaterialDiffuse :  : c[7] : 8 : 1
//var float4 MaterialSpecular :  : c[8] : 9 : 1
//var float3 Light0ModelDirection :  : c[9] : 10 : 1
//var float3 Light0Ambient :  : c[10] : 11 : 1
//var float3 Light0Diffuse :  : c[11] : 12 : 1
//var float3 Light0Specular :  : c[12] : 13 : 1
//var float4 Light0Attenuation :  : c[13] : 14 : 1
//const c[14] = 0 1
dcl_position v0
dcl_normal v1
def c14, 0.000000, 1.000000, 0, 0
dp3 r1.x, v1, c9
add r0.xyz, -v0, c4
dp3 r0.w, r0, r0
rsq r0.w, r0.w
mad r0.xyz, r0.w, r0, -c9
dp3 r0.w, r0, r0
rsq r0.w, r0.w
mul r0.xyz, r0.w, r0
dp3 r1.z, v1, r0
slt r1.y, c14.x, -r1.x
sge r0.x, c14, r1.z
mul r0.x, r1.y, r0
max r0.x, -r0, r0
slt r0.x, c14, r0
add r1.w, -r0.x, c14.y
pow r0, r1.z, c8.w
sge r0.z, r1.y, c14.x
sge r0.y, c14.x, r1
mul r0.y, r0.z, r0
max r0.y, -r0, r0
mul r0.z, r1.w, r0.x
slt r0.y, c14.x, r0
add r0.x, -r0.y, c14.y
mul r0.w, r0.x, r0.z
mul r0.x, r0, -r1
slt r0.y, c14.x, r0.x
max r1.x, -r0.y, r0.y
slt r2.w, c14.x, r1.x
slt r0.z, c14.x, r0.w
mul r0.z, r0.y, r0
max r0.z, -r0, r0
slt r1.w, c14.x, r0.z
mov r1.xyz, c6
mul r1.xyz, c10, r1
mul r0.xyz, r0.x, c7
add r2.x, -r2.w, c14.y
mul r2.xyz, r1, r2.x
mad r0.xyz, r0, c11, r1
mad r0.xyz, r2.w, r0, r2
mul r1.xyz, r0.w, c8
add r2.x, -r1.w, c14.y
mad r1.xyz, r1, c12, r0
mul r2.xyz, r0, r2.x
mul r0, v0.y, c1
mad r1.xyz, r1.w, r1, r2
mad r0, v0.x, c0, r0
mul r1.xyz, r1, c13.w
mad r0, v0.z, c2, r0
add oD0.xyz, r1, c5
add oPos, r0, c3
mov oD0.w, c7
