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_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 : 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 float4x4 WMatrix :  : c[4], 4 : 5 : 1
//var float3 CameraModelPosition :  : c[8] : 6 : 1
//var float3 MaterialEmissive :  : c[9] : 7 : 1
//var float3 MaterialAmbient :  : c[10] : 8 : 1
//var float4 MaterialDiffuse :  : c[11] : 9 : 1
//var float4 MaterialSpecular :  : c[12] : 10 : 1
//var float3 Light0ModelPosition :  : c[13] : 11 : 1
//var float3 Light0Ambient :  : c[14] : 12 : 1
//var float3 Light0Diffuse :  : c[15] : 13 : 1
//var float3 Light0Specular :  : c[16] : 14 : 1
//var float4 Light0Attenuation :  : c[17] : 15 : 1
//const c[18] = 0 1
dcl_position v0
dcl_normal v1
def c18, 0.000000, 1.000000, 0, 0
add r0.xyz, v0, -c13
dp3 r0.w, r0, r0
rsq r1.x, r0.w
add r2.xyz, -v0, c8
dp3 r0.w, r2, r2
mul r1.xyz, r1.x, r0
rsq r0.w, r0.w
mad r2.xyz, r0.w, r2, -r1
dp3 r0.w, r2, r2
rsq r0.w, r0.w
mul r2.xyz, r0.w, r2
dp3 r0.w, v1, r2
dp3 r2.y, v1, r1
slt r1.x, c18, -r2.y
sge r1.y, c18.x, r0.w
mul r1.y, r1.x, r1
max r1.y, -r1, r1
slt r1.z, c18.x, r1.y
sge r1.y, c18.x, r1.x
sge r1.x, r1, c18
mul r1.x, r1, r1.y
add r2.x, -r1.z, c18.y
max r2.z, -r1.x, r1.x
pow r1, r0.w, c12.w
slt r0.w, c18.x, r2.z
add r1.y, -r0.w, c18
mov r0.w, r1.x
mul r1.x, r2, r0.w
mul r4.x, r1.y, -r2.y
slt r0.w, c18.x, r4.x
mul r1.w, r1.y, r1.x
max r2.x, -r0.w, r0.w
slt r2.w, c18.x, r2.x
mul r1.xyz, r1.w, c12
mov r2.xyz, c10
mul r3.xyz, c14, r2
mul r2.xyz, r4.x, c11
slt r1.w, c18.x, r1
mul r0.w, r0, r1
mad r2.xyz, r2, c15, r3
add r3.w, -r2, c18.y
mul r3.xyz, r3, r3.w
mad r2.xyz, r2.w, r2, r3
mul r4.xyz, r0.y, c5
mad r3.xyz, r0.x, c4, r4
mad r0.xyz, r0.z, c6, r3
mul r0.y, r0, r0
mad r0.x, r0, r0, r0.y
mad r0.x, r0.z, r0.z, r0
max r0.y, -r0.w, r0.w
slt r0.z, c18.x, r0.y
rsq r0.x, r0.x
mad r1.xyz, r1, c16, r2
add r0.y, -r0.z, c18
mul r2.xyz, r2, r0.y
rcp r0.x, r0.x
mad r0.y, r0.x, c17.z, c17
mad r1.w, r0.x, r0.y, c17.x
mad r1.xyz, r0.z, r1, r2
mul r0, v0.y, c1
rcp r1.w, r1.w
mad r0, v0.x, c0, r0
mul r1.w, r1, c17
mad r0, v0.z, c2, r0
mad oD0.xyz, r1.w, r1, c9
add oPos, r0, c3
mov oD0.w, c11
