//
// 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 vPlane;                 // Offset:    0
//       float4 vSettings;              // Offset:   16
//
//   } g_ClipPlane;                     // Offset:    0 Size:    32 [unused]
//   float4 specColor;                  // Offset:   32 Size:    16 [unused]
//   float4 ControlData;                // Offset:   48 Size:    16 [unused]
//   float4 difColor;                   // Offset:   64 Size:    16 [unused]
//   float4 ambient;                    // Offset:   80 Size:    16 [unused]
//   float4 lightCount;                 // Offset:   96 Size:    16 [unused]
//   float4 g_avLightPos[4];            // Offset:  112 Size:    64 [unused]
//   float4 g_avLightColor[4];          // Offset:  176 Size:    64 [unused]
//   float4 g_avConeDir[4];             // Offset:  240 Size:    64 [unused]
//   float4 g_vAmbientSettings;         // Offset:  304 Size:    16 [unused]
//   float4 g_vScreenDepthRect;         // Offset:  320 Size:    16 [unused]
//   float4x4 g_mViewProj;              // Offset:  336 Size:    64 [unused]
//   float4x4 g_mIView;                 // Offset:  400 Size:    64 [unused]
//   float4x4 g_mWM;                    // Offset:  464 Size:    64 [unused]
//   float4x4 g_mView;                  // Offset:  528 Size:    64 [unused]
//   float4 g_vCamPos;                  // Offset:  592 Size:    16 [unused]
//   float4 g_vDistortionDesc;          // Offset:  608 Size:    16
//   float4 g_avPData[150];             // Offset:  624 Size:  2400 [unused]
//   
//   struct
//   {
//       
//       float4 vDesc;                  // Offset: 3024
//       float4 vFogLayerPlane;         // Offset: 3040
//       float4 vFogLayerColor;         // Offset: 3056
//       float4 vFogLayerSettings;      // Offset: 3072
//       float4 vFogColor;              // Offset: 3088
//       float4 vFogDistance;           // Offset: 3104
//
//   } g_FogDesc;                       // Offset: 3024 Size:    96 [unused]
//   float4 ExPos[4];                   // Offset: 3120 Size:    64 [unused]
//   float4 ExRad[4];                   // Offset: 3184 Size:    64 [unused]
//   float4 g_vExVolumeSettings;        // Offset: 3248 Size:    16 [unused]
//   float4 g_vExVolumeRect;            // Offset: 3264 Size:    16 [unused]
//   float4 GrayK;                      // Offset: 3280 Size:    16
//      = 0x3eaa7efa 0x3eaa7efa 0x3eaa7efa 0x00000000 
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// SkyTextureSampler                 sampler      NA          NA    0        1
// mySampler                         sampler      NA          NA    1        1
// mySampler                         texture  float4          2d    0        1
// SkyTextureSampler                 texture  float4          2d    1        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   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// COLOR                    0   xyzw        3     NONE   float      w
// TEXCOORD                 2   xy          4     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer cb0[206], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xyzw
dcl_input_ps linear v3.w
dcl_input_ps linear v4.xy
dcl_output o0.xyzw
dcl_temps 3
mul r0.xy, v4.yxyy, l(1.000000, -1.000000, 0.000000, 0.000000)
mad r0.xy, r0.xyxx, cb0[38].yyyy, v1.xyxx
sample r0.xyzw, r0.xyxx, t0.xyzw, s1
sample r1.xyzw, v1.xyxx, t0.xyzw, s1
add r0.y, r0.y, -r1.y
mad r0.zw, v4.xxxy, cb0[38].yyyy, v1.xxxy
sample r2.xyzw, r0.zwzz, t0.xyzw, s1
add r0.x, r1.y, -r2.y
dp2 r0.z, r1.wwww, v3.wwww
mul r0.xy, r0.xyxx, l(0.100000, 0.100000, 0.000000, 0.000000)
add r0.w, v3.w, v3.w
min r0.w, r0.w, l(1.000000)
mad r0.xy, r0.xyxx, r0.wwww, v1.zwzz
sample r1.xyzw, r0.xyxx, t1.xyzw, s0
mov o0.xyz, r1.xyzx
dp3 r0.x, v2.xyzx, cb0[205].xyzx
max r0.x, r0.x, |v2.w|
add r0.x, -r0.x, l(1.000000)
mul r0.y, r0.x, r0.x
mul r0.x, r0.y, r0.x
mul o0.w, r0.x, r0.z
ret 
// Approximately 22 instruction slots used
