//
// 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 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 lightCount;                 // Offset:   64 Size:    16 [unused]
//   float4 g_avLightPos[2];            // Offset:   80 Size:    32 [unused]
//   float4 g_avLightColor[2];          // Offset:  112 Size:    32 [unused]
//   float4 g_avConeDir[2];             // Offset:  144 Size:    32 [unused]
//   float4 g_vAmbientSettings;         // Offset:  176 Size:    16 [unused]
//   float4x4 g_mViewProj;              // Offset:  192 Size:    64 [unused]
//   float4x4 g_mWM;                    // Offset:  256 Size:    64 [unused]
//   float4 g_vSettings;                // Offset:  320 Size:    16
//   float4 g_vCamPos;                  // Offset:  336 Size:    16 [unused]
//   
//   struct
//   {
//       
//       float4 vDesc;                  // Offset:  352
//       float4 vFogLayerPlane;         // Offset:  368
//       float4 vFogLayerColor;         // Offset:  384
//       float4 vFogLayerSettings;      // Offset:  400
//       float4 vFogColor;              // Offset:  416
//       float4 vFogDistance;           // Offset:  432
//
//   } g_FogDesc;                       // Offset:  352 Size:    96 [unused]
//   float4 ExPos[4];                   // Offset:  448 Size:    64 [unused]
//   float4 ExRad[4];                   // Offset:  512 Size:    64 [unused]
//   float4 g_vExVolumeSettings;        // Offset:  576 Size:    16 [unused]
//   float4 g_vExVolumeRect;            // Offset:  592 Size:    16 [unused]
//   float4 GrayK;                      // Offset:  608 Size:    16
//      = 0x3eaa7efa 0x3eaa7efa 0x3eaa7efa 0x00000000 
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// mySampler                         sampler      NA          NA    0        1
// mySampler                         texture  float4          2d    0        1
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float       
// TEXCOORD                 0   xy          1     NONE   float   xy  
// TEXCOORD                 2     zw        1     NONE   float       
// COLOR                    0   xyzw        2     NONE   float      w
// TEXCOORD                 1   xyzw        3     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer cb0[39], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v1.xy
dcl_input_ps linear v2.w
dcl_input_ps linear v3.xyzw
dcl_output o0.xyzw
dcl_temps 2
sample r0.xyzw, v1.xyxx, t0.xyzw, s0
mul r0.xyzw, r0.wwww, r0.xyzw
mul r0.xyzw, r0.xyzw, cb0[20].xxxx
mul r0.xyzw, r0.xyzw, v2.wwww
mul r0.xyzw, r0.xyzw, l(0.500000, 0.500000, 0.500000, 0.500000)
dp3 r1.x, v3.xyzx, cb0[38].xyzx
max r1.x, r1.x, |v3.w|
add r1.x, -r1.x, l(1.000000)
mul r1.y, r1.x, r1.x
mul r1.x, r1.y, r1.x
mul o0.xyzw, r0.xyzw, r1.xxxx
ret 
// Approximately 12 instruction slots used
