//Skybox VS 1.
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.181 on Wed Jul 12 11:04:49 2023
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   float4x4 modelview;                // Index:    0 1 2 3          Components:    16
//   float3 eyePosWorld;                // Index:    4.xyz            Components:     3
//   float3 sunVec;                     // Index:    5.xyz            Components:     3
//   float2 texOffset0;                 // Index:    6.xy             Components:     2
//   float2 texOffset1;                 // Index:    6.zw             Components:     2
//   float2 texOffset2;                 // Index:    7.xy             Components:     2
//   float3 texScale;                   // Index:    8.xyz            Components:     3
//   float3 ambientColor;               // Index:    9.xyz            Components:     3 [unused]
//   float3 sunColor;                   // Index:   10.xyz            Components:     3 [unused]
//   float cloudCoverage;               // Index:   10.w              Components:     1 [unused]
//   float3 cloudBaseColor;             // Index:   11.xyz            Components:     3 [unused]
//   float cloudExposure;               // Index:   11.w              Components:     1 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyz         0     NONE   float   xyz
// NORMAL                   0   xyz         1     NONE   float   xyz
// BINORMAL                 0   xyz         2     NONE   float   xyz
// TANGENT                  0   xyz         3     NONE   float   xyz
// TEXCOORD                 0   xy          4     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyz         3     NONE   float   xyz
// TEXCOORD                 4      w        3     NONE   float      w
// TEXCOORD                 3   xyz         4     NONE   float   xyz
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[9], immediateIndexed
dcl_input v0.xyz
dcl_input v1.xyz
dcl_input v2.xyz
dcl_input v3.xyz
dcl_input v4.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyz
dcl_output o3.w
dcl_output o4.xyz
dcl_temps 31
dcl_resource_texture2d (float,float,float,float) t125
ld_indexable(texture2d)(float,float,float,float) r25.xyzw, l(0, 0, 0, 0), t125.xyzw
mul r0.xyzw, v0.yyyy, cb0[1].xyzw
mad r0.xyzw, cb0[0].xyzw, v0.xxxx, r0.xyzw
mad r0.xyzw, cb0[2].xyzw, v0.zzzz, r0.xyzw

mad r0.x, r25.x, r25.y, r0.x

add o0.xyzw, r0.xyzw, cb0[3].xyzw
add r0.xy, v4.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
mad o1.xyzw, r0.xyxy, cb0[8].xxyy, cb0[6].xyzw
mad o2.xy, r0.xyxx, cb0[8].zzzz, cb0[7].xyxx
mov o2.z, v0.z
mov o2.w, l(0)
mul r0.xyz, v2.xyzx, cb0[5].yyyy
mad r0.xyz, cb0[5].xxxx, v3.xyzx, r0.xyzx
mad o3.xyz, cb0[5].zzzz, v1.xyzx, r0.xyzx
max r0.x, v0.z, l(0.000000)
mul r0.x, r0.x, r0.x
min o3.w, r0.x, l(1.000000)
add r0.xyz, v0.xyzx, cb0[4].xyzx
add r0.xyz, -r0.xyzx, cb0[4].xyzx
dp3 o4.x, -v3.xyzx, r0.xyzx
dp3 o4.y, -v2.xyzx, r0.xyzx
dp3 o4.z, -v1.xyzx, r0.xyzx
ret
// Approximately 21 instruction slots used
