//
// 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 [unused]
//   float4 g_vSettings0;               // Offset:  320 Size:    16 [unused]
//   float4 g_vSettings1;               // Offset:  336 Size:    16
//   float4 g_vSettings2;               // Offset:  352 Size:    16
//   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
// ------------------------------ ---------- ------- ----------- ---- --------
// DiffSampler                       sampler      NA          NA    0        1
// DiffSampler                       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   xyzw        1     NONE   float   xy w
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer cb0[23], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v1.xyw
dcl_output o0.xyzw
dcl_temps 2
div r0.xy, v1.xyxx, v1.wwww
add r0.zw, -cb0[21].xxxy, cb0[21].zzzw
min r0.xy, r0.zwzz, r0.xyxx
sample r0.xyzw, r0.xyxx, t0.xyzw, s0
max r1.x, r0.w, l(0.001000)
div_sat o0.xyz, r0.xyzx, r1.xxxx
mul o0.w, r0.w, cb0[22].x
ret 
// Approximately 8 instruction slots used
