//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.2.67 on Mon Jan 01 13:12:21 2018
//
//
// Buffer Definitions: 
//
// cbuffer $Globals
// {
//
//   float4 specColor;                  // Offset:    0 Size:    16 [unused]
//   float4 ControlData;                // Offset:   16 Size:    16 [unused]
//   float4 difColor;                   // Offset:   32 Size:    16 [unused]
//   float4 ambient;                    // Offset:   48 Size:    16 [unused]
//   float4 g_vDefLightDir;             // Offset:   64 Size:    16 [unused]
//   float4 g_vDefLightColor;           // Offset:   80 Size:    16 [unused]
//   float4 g_vDefSpecColor;            // Offset:   96 Size:    16 [unused]
//   uint CS_FRONT;                     // Offset:  112 Size:     4 [unused]
//      = 0x00000000 
//   uint CS_RIGHT;                     // Offset:  116 Size:     4 [unused]
//      = 0x00000001 
//   uint CS_BACK;                      // Offset:  120 Size:     4 [unused]
//      = 0x00000002 
//   uint CS_LEFT;                      // Offset:  124 Size:     4 [unused]
//      = 0x00000003 
//   uint CS_TOP;                       // Offset:  128 Size:     4 [unused]
//      = 0x00000004 
//   uint CS_BOTTOM;                    // Offset:  132 Size:     4 [unused]
//      = 0x00000005 
//   float4 g_vAmbientSettings;         // Offset:  144 Size:    16 [unused]
//   
//   struct
//   {
//       
//       float4 vDesc;                  // Offset:  160
//       float4 vFogLayerPlane;         // Offset:  176
//       float4 vFogLayerColor;         // Offset:  192
//       float4 vFogLayerSettings;      // Offset:  208
//       float4 vFogColor;              // Offset:  224
//       float4 vFogDistance;           // Offset:  240
//
//   } g_FogDesc;                       // Offset:  160 Size:    96 [unused]
//   
//   struct
//   {
//       
//       float4x4 mLightSpaceInverse;   // Offset:  256
//       float4x4 mLightSpace;          // Offset:  320
//       float4 vShadowBias;            // Offset:  384
//       float4 vBiasDir;               // Offset:  400
//       float4 vSmoothOffs;            // Offset:  416
//       float4 vShadowsDesc;           // Offset:  432
//       float4 avCPlane[8];            // Offset:  448
//       float4 avCascadeZ[2];          // Offset:  576
//       float4 avUVTransform[8];       // Offset:  608
//       float4 avZTransformZF[8];      // Offset:  736
//
//   } g_ShadSettings;                  // Offset:  256 Size:   608 [unused]
//   float4x4 g_mCloudsShadowsSpace;    // Offset:  864 Size:    64 [unused]
//   float4 g_vCloudsShadowDesc;        // Offset:  928 Size:    16 [unused]
//   float4x4 g_mWorldViewProjection;   // Offset:  944 Size:    64
//   float3 g_deltaCam;                 // Offset: 1008 Size:    12
//   float3 g_sunVector;                // Offset: 1024 Size:    12 [unused]
//   float3 g_camPos;                   // Offset: 1040 Size:    12 [unused]
//   float3 g_worldPos;                 // Offset: 1056 Size:    12 [unused]
//   float3 g_color_Diffuse;            // Offset: 1072 Size:    12 [unused]
//   float4 g_color_Empty;              // Offset: 1088 Size:    16 [unused]
//   float3 g_simpleData;               // Offset: 1104 Size:    12 [unused]
//   float cEPS;                        // Offset: 1116 Size:     4 [unused]
//      = 0x38d1b717 
//   float c0;                          // Offset: 1120 Size:     4 [unused]
//      = 0x00000000 
//   float c0_5;                        // Offset: 1124 Size:     4 [unused]
//      = 0x3f000000 
//   float c1_0;                        // Offset: 1128 Size:     4
//      = 0x3f800000 
//   float c2_0;                        // Offset: 1132 Size:     4
//      = 0x40000000 
//   float c3_0;                        // Offset: 1136 Size:     4
//      = 0x40400000 
//   float c4_0;                        // Offset: 1140 Size:     4
//      = 0x40800000 
//   float c140_0;                      // Offset: 1144 Size:     4 [unused]
//      = 0x430c0000 
//
// }
//
//
// 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   x z 
// TEXCOORD                 0   xy          1     NONE   float   xy  
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
//
//
// 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_1
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[72], immediateIndexed
dcl_input v0.xz
dcl_input v1.xy
dcl_input v2.xyzw
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_output o2.xyzw
dcl_output o3.xyzw
// dcl_temps updated : previous = dcl_temps 1
dcl_temps 4
// added 3dmigoto declaration
dcl_resource_texture1d (float,float,float,float) t120
ld_indexable(texture1d)(float,float,float,float) r2.xyzw, l(0, 0, 0, 0), t120.xyzw
mov r3.x, r2.w
mov r3.y, r2.w
mov r3.zw, l(1.0, 1.0)
// end of 3dmigoto declaration
add r0.xy, v0.xzxx, -cb0[63].xzxx
// replacing matrix usage :mul r0.xy, r0.xyxx, cb0[59].xxxx
mul r1.xy, r0.xyxx, cb0[59].xxxx
mad o0.xy, r0.xyxx, l(0.0000781249983, 0.0000781249983, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mov o0.zw, l(0,0,0.500000,1.000000)
mov o1.xy, v1.xyxx
mov o2.xyzw, v2.xyzw
mul r0.x, v1.y, cb0[71].x
add r0.y, v2.y, v2.x
mul o3.x, r0.y, r0.x
mul r0.x, v2.y, cb0[70].w
mad r0.x, cb0[71].y, v2.x, r0.x
mad o3.y, -v1.y, r0.x, -cb0[70].z
mad o3.z, v1.y, v2.x, v1.x
mov o3.w, l(0)
ret 
// Approximately 15 instruction slots used
