//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.2.67 on Mon Jan 01 13:11:46 2018
//
//
// Buffer Definitions: 
//
// cbuffer $Globals
// {
//
//   struct
//   {
//       
//       float4 vDesc;                  // Offset:    0
//       float4 vFogLayerPlane;         // Offset:   16
//       float4 vFogLayerColor;         // Offset:   32
//       float4 vFogLayerSettings;      // Offset:   48
//       float4 vFogColor;              // Offset:   64
//       float4 vFogDistance;           // Offset:   80
//
//   } g_FogDesc;                       // Offset:    0 Size:    96 [unused]
//   float4 g_vAmbient;                 // Offset:   96 Size:    16 [unused]
//   float4 g_vLightColor;              // Offset:  112 Size:    16 [unused]
//   float3 g_vLightDir;                // Offset:  128 Size:    12 [unused]
//   float4x4 g_mCloudsShadowsSpace;    // Offset:  144 Size:    64 [unused]
//   float4 g_vCloudsShadowDesc;        // Offset:  208 Size:    16 [unused]
//   float4 g_vCamPos;                  // Offset:  224 Size:    16 [unused]
//   float4 g_vCenter;                  // Offset:  240 Size:    16 [unused]
//   float4x4 g_mViewProj;              // Offset:  256 Size:    64
//   float4 g_vSettings0;               // Offset:  320 Size:    16
//   float4 g_vSettings1;               // Offset:  336 Size:    16
//   float4 g_vSettings2;               // Offset:  352 Size:    16 [unused]
//   float4 g_vScreenRect;              // Offset:  368 Size:    16 [unused]
//   float3 g_vPlaneN;                  // Offset:  384 Size:    12 [unused]
//   float4x4 g_mIWorld;                // Offset:  400 Size:    64 [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 
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
//
vs_4_0
dcl_constantbuffer cb0[22], immediateIndexed
dcl_input v0.xyz
dcl_output_siv o0.xyzw, position
dcl_output o1.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.xz, v0.xxzx, cb0[20].yyxy
mov r0.y, v0.y
mov r0.w, l(1.000000)
// replacing matrix usage :dp4 r1.x, r0.xyzw, cb0[16].xyzw
dp4 r2.x, r0.xyzw, cb0[16].xyzw
mul r1.x, r2.x, r4.x
// replacing matrix usage :dp4 r1.y, r0.xyzw, cb0[17].xyzw
dp4 r2.y, r0.xyzw, cb0[17].xyzw
mul r1.y, r2.y, r4.y
dp4 r1.z, r0.xyzw, cb0[18].xyzw
dp4 r1.w, r0.xyzw, cb0[19].xyzw
mov o0.xyzw, r1.xyzw
mul r0.xyz, r1.xwyx, l(0.500000, 0.500000, 0.500000, 0.000000)
mov o1.zw, r1.zzzw
mad r1.y, r1.w, l(0.500000), -r0.z
mul r0.zw, r1.wwww, cb0[21].xxxy
add r1.x, r0.y, r0.x
mad o1.xy, r1.xyxx, cb0[21].zwzz, r0.zwzz
ret 
// Approximately 15 instruction slots used
