//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.2.67 on Mon Jan 01 13:12:15 2018
//
//
// Buffer Definitions: 
//
// cbuffer $Globals
// {
//
//   float4x4 g_mCloudsShadowsSpace;    // Offset:    0 Size:    64 [unused]
//   float4 g_vCloudsShadowDesc;        // Offset:   64 Size:    16 [unused]
//   float4 g_vKSettings;               // Offset:   80 Size:    16 [unused]
//   float4x4 g_mPrevObjViewProj;       // Offset:   96 Size:    64 [unused]
//   
//   struct
//   {
//       
//       float4x4 mLightSpaceInverse;   // Offset:  160
//       float4x4 mLightSpace;          // Offset:  224
//       float4 vShadowBias;            // Offset:  288
//       float4 vBiasDir;               // Offset:  304
//       float4 vSmoothOffs;            // Offset:  320
//       float4 vShadowsDesc;           // Offset:  336
//       float4 avCPlane[8];            // Offset:  352
//       float4 avCascadeZ[2];          // Offset:  480
//       float4 avUVTransform[8];       // Offset:  512
//       float4 avZTransformZF[8];      // Offset:  640
//
//   } g_ShadSettings;                  // Offset:  160 Size:   608 [unused]
//   float4 specColor;                  // Offset:  768 Size:    16 [unused]
//   float4 ControlData;                // Offset:  784 Size:    16 [unused]
//   float4 difColor;                   // Offset:  800 Size:    16 [unused]
//   float4 ambient;                    // Offset:  816 Size:    16 [unused]
//   float4 g_vDefLightDir;             // Offset:  832 Size:    16 [unused]
//   float4 g_vDefLightColor;           // Offset:  848 Size:    16 [unused]
//   float4 g_vDefSpecColor;            // Offset:  864 Size:    16 [unused]
//   uint CS_FRONT;                     // Offset:  880 Size:     4 [unused]
//      = 0x00000000 
//   uint CS_RIGHT;                     // Offset:  884 Size:     4 [unused]
//      = 0x00000001 
//   uint CS_BACK;                      // Offset:  888 Size:     4 [unused]
//      = 0x00000002 
//   uint CS_LEFT;                      // Offset:  892 Size:     4 [unused]
//      = 0x00000003 
//   uint CS_TOP;                       // Offset:  896 Size:     4 [unused]
//      = 0x00000004 
//   uint CS_BOTTOM;                    // Offset:  900 Size:     4 [unused]
//      = 0x00000005 
//   float4 g_vAmbientSettings;         // Offset:  912 Size:    16 [unused]
//   float4 g_vScreenDepthRect;         // Offset:  928 Size:    16 [unused]
//   
//   struct
//   {
//       
//       float4 vDesc;                  // Offset:  944
//       float4 vFogLayerPlane;         // Offset:  960
//       float4 vFogLayerColor;         // Offset:  976
//       float4 vFogLayerSettings;      // Offset:  992
//       float4 vFogColor;              // Offset: 1008
//       float4 vFogDistance;           // Offset: 1024
//
//   } g_FogDesc;                       // Offset:  944 Size:    96 [unused]
//   float4 g_vForestPlaneThreshold;    // Offset: 1040 Size:    16 [unused]
//      = 0x44a28000 0x3b03126f 0x00000000 0x00000000 
//   float4 LowDeepColor;               // Offset: 1056 Size:    16 [unused]
//      = 0x3e99999a 0x3ecccccd 0x3ecccccd 0x00000000 
//   float4 SeaColor;                   // Offset: 1072 Size:    16 [unused]
//      = 0x3dcccccd 0x3e99999a 0x3e99999a 0x00000000 
//   float4 DetailScale;                // Offset: 1088 Size:    16 [unused]
//      = 0x3f800000 0x3f800000 0x3f800000 0x3f800000 
//   float4 g_vIceScale;                // Offset: 1104 Size:    16 [unused]
//      = 0x3f800000 0x3f800000 0x3f800000 0x3f800000 
//   float4 g_vSpecSettings;            // Offset: 1120 Size:    16 [unused]
//      = 0x3f800000 0x3f800000 0x3f800000 0x3f800000 
//   float4 g_vSeaCorrection;           // Offset: 1136 Size:    16 [unused]
//   float4 g_vSeaDesc;                 // Offset: 1152 Size:    16 [unused]
//      = 0x3ecccccd 0x3f19999a 0x40800000 0x3f7ae148 
//   float4 g_vSeaHarmonics;            // Offset: 1168 Size:    16 [unused]
//      = 0x3f800000 0x3f800000 0x3f800000 0x3f800000 
//   float4 g_vWaterDesc;               // Offset: 1184 Size:    16 [unused]
//      = 0x3ecccccd 0x3f19999a 0x40800000 0x3f7ae148 
//   float4 g_vWaterColor;              // Offset: 1200 Size:    16 [unused]
//      = 0x3f800000 0x00000000 0x00000000 0x00000000 
//   float4 g_vWaterSpecColor;          // Offset: 1216 Size:    16 [unused]
//      = 0x3f800000 0x3f800000 0x3f800000 0x42a00000 
//   float4 Anim;                       // Offset: 1232 Size:    16 [unused]
//   float4 g_vAsyncTextureSize;        // Offset: 1248 Size:    16 [unused]
//      = 0x3f800000 0x3f800000 0x00000000 0x00000000 
//   float4 g_vRTTexSize;               // Offset: 1264 Size:    16 [unused]
//   float4 g_vAnisotropy;              // Offset: 1280 Size:    16 [unused]
//   float2 TexelOffs[9];               // Offset: 1296 Size:   136 [unused]
//      = 0x00000000 0x00000000 0x00000000 0x00000000 
//        0xba800000 0x00000000 0x00000000 0x00000000 
//        0x3a800000 0x00000000 0x00000000 0x00000000 
//        0x00000000 0xba800000 0x00000000 0x00000000 
//        0x00000000 0x3a800000 0x00000000 0x00000000 
//        0xbb000000 0xbb000000 0x00000000 0x00000000 
//        0x3b000000 0xbb000000 0x00000000 0x00000000 
//        0x3b000000 0x3b000000 0x00000000 0x00000000 
//        0xbb000000 0x3b000000 
//   float4 g_avGroundColor[9];         // Offset: 1440 Size:   144 [unused]
//   float4x4 g_mWorldViewProjection;   // Offset: 1584 Size:    64
//   float4x4 g_mView;                  // Offset: 1648 Size:    64 [unused]
//   float4x4 g_mWorldView;             // Offset: 1712 Size:    64 [unused]
//   float3 chunkColor;                 // Offset: 1776 Size:    12 [unused]
//   float3 g_deltaCam;                 // Offset: 1792 Size:    12 [unused]
//   float4 mapSize;                    // Offset: 1808 Size:    16 [unused]
//   float4 skirtInfo;                  // Offset: 1824 Size:    16 [unused]
//   float4x4 g_textureRotation;        // Offset: 1840 Size:    64 [unused]
//   float3 textureCoordsP1;            // Offset: 1904 Size:    12 [unused]
//   float3 textureCoordsP2;            // Offset: 1920 Size:    12 [unused]
//   float3 chunkInSectorCoords;        // Offset: 1936 Size:    12 [unused]
//   float4 chunkInfo;                  // Offset: 1952 Size:    16 [unused]
//   float4 g_vSettings;                // Offset: 1968 Size:    16 [unused]
//   float4 g_vPlaneSettings;           // Offset: 1984 Size:    16
//   float4 g_vPlaneOffset;             // Offset: 2000 Size:    16
//   float3 GrayK;                      // Offset: 2016 Size:    12 [unused]
//      = 0x3eaa7efa 0x3eaa7efa 0x3eaa7efa 
//   float4 g_vForestFarSettings;       // Offset: 2032 Size:    16 [unused]
//   float4 g_vWindDir;                 // Offset: 2048 Size:    16 [unused]
//      = 0x3f800000 0x00000000 0x00000000 0x00000000 
//   float4 DetailOffset;               // Offset: 2064 Size:    16 [unused]
//   float4 DetailSectorOffset;         // Offset: 2080 Size:    16 [unused]
//   float4 DetailSettings;             // Offset: 2096 Size:    16 [unused]
//   float4 ParalaxSettings;            // Offset: 2112 Size:    16 [unused]
//      = 0x3e19999a 0x3f800000 0x43480000 0x00000000 
//   float4 DetailH[64];                // Offset: 2128 Size:  1024 [unused]
//   float4 DetailRTCoords;             // Offset: 3152 Size:    16 [unused]
//   float4 g_vPRTSettings;             // Offset: 3168 Size:    16 [unused]
//      = 0x00000000 0x00000000 0x42480000 0x3a000000 
//   float4 g_avMask[4];                // Offset: 3184 Size:    64 [unused]
//      = 0x3f800000 0x00000000 0x00000000 0x00000000 
//        0x00000000 0x3f800000 0x00000000 0x00000000 
//        0x00000000 0x00000000 0x3f800000 0x00000000 
//        0x00000000 0x00000000 0x00000000 0x3f800000 
//   float4 g_avPRTMask[4];             // Offset: 3248 Size:    64 [unused]
//      = 0x3f800000 0x00000000 0x00000000 0x00000000 
//        0x00000000 0x3f800000 0x00000000 0x00000000 
//        0x00000000 0x00000000 0x3f800000 0x00000000 
//        0x00000000 0x00000000 0x00000000 0x3f800000 
//
// }
//
//
// 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   xy          0     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy  
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyzw        3     NONE   float   xyzw
//
vs_4_0
dcl_constantbuffer cb0[126], immediateIndexed
dcl_input v0.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_output o2.xyzw
dcl_output o3.xyzw
// dcl_temps updated : previous = dcl_temps 2
dcl_temps 5
// added 3dmigoto declaration
dcl_resource_texture1d (float,float,float,float) t120
ld_indexable(texture1d)(float,float,float,float) r3.xyzw, l(0, 0, 0, 0), t120.xyzw
mov r4.x, r3.w
mov r4.y, r3.w
mov r4.zw, l(1.0, 1.0)
// end of 3dmigoto declaration
mul r0.x, cb0[124].x, l(0.500000)
mad r0.xz, v0.xxyx, cb0[124].xxxx, -r0.xxxx
mov r0.y, cb0[125].x
mov r0.w, l(1.000000)
// replacing matrix usage :dp4 r1.x, r0.xyzw, cb0[99].xyzw
dp4 r2.x, r0.xyzw, cb0[99].xyzw
mul r1.x, r2.x, r4.x
// replacing matrix usage :dp4 r1.y, r0.xyzw, cb0[100].xyzw
dp4 r2.y, r0.xyzw, cb0[100].xyzw
mul r1.y, r2.y, r4.y
dp4 r1.z, r0.xyzw, cb0[101].xyzw
dp4 r1.w, r0.xyzw, cb0[102].xyzw
mov o2.xyzw, r0.xyzw
mov o0.xyzw, r1.xyzw
mul r0.xyz, r1.xwyx, l(0.500000, 0.500000, 0.500000, 0.000000)
mov o3.zw, r1.zzzw
mad o3.y, r1.w, l(0.500000), -r0.z
add o3.x, r0.y, r0.x
mad o1.xy, v0.xyxx, cb0[125].wwww, cb0[125].yzyy
ret 
// Approximately 16 instruction slots used
