vs_2_0
// cgc version 2.1.0016, build date Nov 20 2008
// command line args: -profile vs_2_0 -quiet
//vendor NVIDIA Corporation
//version 2.1.0.16
//profile vs_2_0
//program vmain
//semantic vmain.projMatrix
//semantic vmain.worldOriginInView
//semantic vmain.cameraToSunDirAndExposure
//semantic vmain.cameraLightInfo
//semantic vmain.startupConsts
//var float3 rayDir : $vin.POSITION : ATTR0 : 0 : 1
//var float4x4 projMatrix :  : c[0], 4 : 1 : 1
//var float3 worldOriginInView :  : c[4] : 2 : 1
//var float4 cameraToSunDirAndExposure :  : c[5] : 3 : 1
//var float4 cameraLightInfo :  : c[6] : 4 : 1
//var float4 startupConsts :  : c[7] : 5 : 1
//var float4 vmain.pos : $vout.POSITION : HPOS : -1 : 1
//var float4 vmain.rayleighColorAndSkyOpacity : $vout.TEXCOORD0 : TEX0 : -1 : 1
//var float4 vmain.vertToCameraDir : $vout.TEXCOORD1 : TEX1 : -1 : 1
//const c[8] = 1 0 2.718282 2
//const c[9] = -1.0540187 4 0.25 0.5
//const c[10] = 5.25 -6.8000002 3.8299999 0.45899999
//const c[11] = -0.00287 250.11763 0.15000001 37.517647
//const c[12] = 0.1885598 0.31017837 0.6296947
//const c[13] = 0.35012779 0.59208024 1.2277377
def c8, 1.00000000, 0.00000000, 2.71828198, 2.00000000
def c9, -1.05401874, 4.00000000, 0.25000000, 0.50000000
def c10, 5.25000000, -6.80000019, 3.82999992, 0.45899999
def c11, -0.00287000, 250.11763000, 0.15000001, 37.51764679
def c12, 0.18855980, 0.31017837, 0.62969470, 0
def c13, 0.35012779, 0.59208024, 1.22773767, 0
dcl_position v0
mov r0.x, c6.w
add r0.x, c9, r0
dp3 r1.w, v0, -c4
mul r0.y, r0.x, c9
mul r0.x, r1.w, c8.w
mad r0.y, r0.x, r0.x, -r0
max r0.y, r0, c8
rsq r0.y, r0.y
rcp r0.y, r0.y
add r0.x, -r0, r0.y
mul r4.x, r0, c9.z
mul r0.xyz, v0, r4.x
mul r1.xyz, r0, c9.w
add r1.xyz, r1, -c4
add r0.xyz, r1, r0
dp3 r0.w, r0, r0
dp3 r2.x, v0, r0
rsq r3.x, r0.w
dp3 r0.x, r0, c5
mad r0.z, r3.x, -r2.x, c8.x
mad r0.x, -r0, r3, c8
mad r0.y, r0.x, c10.x, c10
mad r0.w, r0.z, c10.x, c10.y
mad r0.y, r0.x, r0, c10.z
mad r0.y, r0.x, r0, c10.w
mad r0.w, r0.z, r0, c10.z
mad r0.w, r0.z, r0, c10
mad r0.x, r0, r0.y, c11
pow r2, c8.z, r0.x
mad r3.y, r0.z, r0.w, c11.x
pow r0, c8.z, r3.y
mov r0.y, r2.x
add r4.z, r0.y, -r0.x
rcp r0.z, r3.x
add r0.y, -r0.z, c8.x
rcp r0.x, c6.x
mul r2.x, r0.y, c11.y
mul r1.w, r1, r0.x
pow r0, c8.z, r2.x
add r0.y, -r1.w, c8.x
mad r0.z, r0.y, c10.x, c10.y
mad r0.z, r0.y, r0, c10
mad r0.z, r0.y, r0, c10.w
mad r0.y, r0, r0.z, c11.x
pow r3, c8.z, r0.y
mov r0.w, c6.x
add r0.w, c8.x, -r0
mul r0.w, r0, c11.y
pow r2, c8.z, r0.w
mov r2.w, r0.x
mov r0.z, r2.x
mov r0.y, r3.x
mul r0.y, r0, r0.z
mul r4.y, r0, c11.z
mul r0.x, r4.z, r2.w
mad r0.x, r0, c11.z, r4.y
mul r2.xyz, -r0.x, c12
pow r0, c8.z, r2.x
dp3 r0.y, r1, r1
mov r2.x, r0
rsq r4.z, r0.y
dp3 r0.x, r1, c5
mad r3.x, -r0, r4.z, c8
pow r0, c8.z, r2.y
mad r0.x, r3, c10, c10.y
mad r0.x, r3, r0, c10.z
mad r3.y, r3.x, r0.x, c10.w
mov r2.y, r0
pow r0, c8.z, r2.z
dp3 r0.y, v0, r1
mad r0.y, r4.z, -r0, c8.x
mad r0.x, r3, r3.y, c11
pow r3, c8.z, r0.x
mad r0.w, r0.y, c10.x, c10.y
mad r0.w, r0.y, r0, c10.z
mad r0.w, r0.y, r0, c10
mad r0.y, r0, r0.w, c11.x
rcp r1.x, r4.z
add r1.x, -r1, c8
pow r5, c8.z, r0.y
mul r0.w, r1.x, c11.y
mov r0.x, r3
pow r3, c8.z, r0.w
mov r0.y, r5.x
mov r4.z, r3.x
add r0.x, r0, -r0.y
mul r0.x, r0, r4.z
mad r0.x, r0, c11.z, r4.y
mul r1.xyz, -r0.x, c12
mov r2.z, r0
pow r3, c8.z, r1.z
pow r0, c8.z, r1.x
mul r4.x, r4, c11.w
mul r0.y, r4.x, r2.w
mul r2.xyz, r2, r0.y
mov r1.x, r0
pow r0, c8.z, r1.y
mov r1.y, r0
slt r0.x, c6.z, -r1.w
max r0.w, -r0.x, r0.x
mul r0.y, r4.z, r4.x
mov r1.z, r3
mad r1.xyz, r1, r0.y, r2
mul r0.xyz, r1, c13
slt r1.x, c8.y, r0.w
mov r0.w, c7
add r1.x, -r1, c8
mul oT0, r1.x, r0
mov r0.w, c8.x
mov r0.xyz, v0
dp4 oPos.zw, r0, c3
dp4 oPos.y, r0, c1
dp4 oPos.x, r0, c0
mov oT1.xyz, -v0
mov oT1.w, c8.x
