//
// 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
// {
//
//   float4 g_vDitherSettings;          // Offset:    0 Size:    16 [unused]
//   float4 g_vKSettings;               // Offset:   16 Size:    16 [unused]
//   float4x4 g_mPrevObjViewProj;       // Offset:   32 Size:    64 [unused]
//   float4 specColor;                  // Offset:   96 Size:    16 [unused]
//   float4 ControlData;                // Offset:  112 Size:    16 [unused]
//   float4 difColor;                   // Offset:  128 Size:    16 [unused]
//   float4 ambient;                    // Offset:  144 Size:    16 [unused]
//   float4 lightCount;                 // Offset:  160 Size:    16 [unused]
//   float4 g_avLightPos[4];            // Offset:  176 Size:    64 [unused]
//   float4 g_avLightColor[4];          // Offset:  240 Size:    64 [unused]
//   float4 g_avConeDir[4];             // Offset:  304 Size:    64 [unused]
//   float4 g_vAmbientSettings;         // Offset:  368 Size:    16 [unused]
//   float4 g_vScreenDepthRect;         // Offset:  384 Size:    16 [unused]
//   
//   struct
//   {
//       
//       float4 vDesc;                  // Offset:  400
//       float4 vFogLayerPlane;         // Offset:  416
//       float4 vFogLayerColor;         // Offset:  432
//       float4 vFogLayerSettings;      // Offset:  448
//       float4 vFogColor;              // Offset:  464
//       float4 vFogDistance;           // Offset:  480
//
//   } g_FogDesc;                       // Offset:  400 Size:    96 [unused]
//   float4x4 g_mViewProj;              // Offset:  496 Size:    64
//   float4x4 g_mView;                  // Offset:  560 Size:    64
//   float4 g_vOffset;                  // Offset:  624 Size:    16
//   float4 g_vPixelOffset;             // Offset:  640 Size:    16
//   float4 g_vMaskCoord;               // Offset:  656 Size:    16 [unused]
//   float4 g_vTerrainNormCoord;        // Offset:  672 Size:    16 [unused]
//   float4 g_vExclusionMask;           // Offset:  688 Size:    16 [unused]
//      = 0x3f800000 0x3f800000 0x3f800000 0x3f800000 
//   float4 g_avFaceK[2];               // Offset:  704 Size:    32
//   float4 g_vCamPos;                  // Offset:  736 Size:    16 [unused]
//   float4 g_vConstraints;             // Offset:  752 Size:    16 [unused]
//   float4 g_avTreeCenter[128];        // Offset:  768 Size:  2048 [unused]
//   float4x4 g_mCloudsShadowsSpace;    // Offset: 2816 Size:    64 [unused]
//   float4 g_vCloudsShadowDesc;        // Offset: 2880 Size:    16 [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 
// POSITION                 1   xyzw        1     NONE   float   xyz 
// NORMAL                   0   xyz         2     NONE   float   xyz 
// TEXCOORD                 0   xy          3     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xy          2     NONE   float   xy  
//
vs_4_0
dcl_constantbuffer cb0[46], dynamicIndexed
dcl_input v0.xyz
dcl_input v1.xyz
dcl_input v2.xyz
dcl_input v3.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xy
// 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
add r0.x, -v1.x, cb0[40].x
add r0.yz, v1.zzyz, -cb0[40].wwyw
ftou r0.y, r0.y
mad r0.x, cb0[r0.y + 44].x, r0.x, cb0[r0.y + 44].z
mad r0.x, cb0[r0.y + 44].y, r0.z, r0.x
mov r1.xyz, v0.xyzx
mov r1.w, l(1.000000)
add r1.xyzw, r1.xyzw, cb0[39].xyzw
mad r1.y, r0.x, cb0[44].w, r1.y
// replacing matrix usage :dp4 o0.x, r1.xyzw, cb0[31].xyzw
dp4 r2.x, r1.xyzw, cb0[31].xyzw
mul o0.x, r2.x, r4.x
// replacing matrix usage :dp4 o0.y, r1.xyzw, cb0[32].xyzw
dp4 r2.y, r1.xyzw, cb0[32].xyzw
mul o0.y, r2.y, r4.y
dp4 o0.z, r1.xyzw, cb0[33].xyzw
dp4 o0.w, r1.xyzw, cb0[34].xyzw
// replacing matrix usage :dp3 r0.x, v2.xyzx, cb0[35].xyzx
dp3 r2.x, v2.xyzx, cb0[35].xyzx
mul r0.x, r2.x, r4.x
// replacing matrix usage :dp3 r0.y, v2.xyzx, cb0[36].xyzx
dp3 r2.y, v2.xyzx, cb0[36].xyzx
mul r0.y, r2.y, r4.y
dp3 r0.z, v2.xyzx, cb0[37].xyzx
mad o1.xyz, r0.xyzx, l(0.500000, 0.500000, -0.500000, 0.000000), l(0.500000, 0.500000, 0.500000, 0.000000)
mov o1.w, l(0)
mov o2.xy, v3.xyxx
ret 
// Approximately 20 instruction slots used
