//
// 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_vSkyColor;                // Offset:    0 Size:    16
//   float4 g_vFogK;                    // Offset:   16 Size:    16
//   float4 Ambient;                    // Offset:   32 Size:    16
//   float4 LightColor;                 // Offset:   48 Size:    16
//   float3 LightDir;                   // Offset:   64 Size:    12 [unused]
//   float4 ZNormalsCorrection;         // Offset:   80 Size:    16 [unused]
//   
//   struct
//   {
//       
//       float4 vDesc;                  // Offset:   96
//       float4 vFogLayerPlane;         // Offset:  112
//       float4 vFogLayerColor;         // Offset:  128
//       float4 vFogLayerSettings;      // Offset:  144
//       float4 vFogColor;              // Offset:  160
//       float4 vFogDistance;           // Offset:  176
//
//   } g_FogDesc;                       // Offset:   96 Size:    96 [unused]
//   float4x4 ViewProj;                 // Offset:  192 Size:    64 [unused]
//   float4x4 IView;                    // Offset:  256 Size:    64 [unused]
//   float3 CloudPos;                   // Offset:  320 Size:    12 [unused]
//   float3 CamPos;                     // Offset:  336 Size:    12 [unused]
//   float4 Orientation[2];             // Offset:  352 Size:    32 [unused]
//      = 0x00000000 0x3f800000 0x00000000 0x00000000 
//        0x3f800000 0x00000000 0x00000000 0x3f800000 
//   float4 ImposterData[96];           // Offset:  384 Size:  1536 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// DiffSampler                       sampler      NA          NA    0        1
// DiffTopSampler                    sampler      NA          NA    1        1
// DiffBlurSampler                   sampler      NA          NA    2        1
// DiffSampler                       texture  float4          2d    0        1
// DiffTopSampler                    texture  float4          2d    1        1
// DiffBlurSampler                   texture  float4          2d    2        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   xyz         1     NONE   float   xyz 
// COLOR                    0   xyzw        2     NONE   float   xyzw
// COLOR                    1   xyzw        3     NONE   float      w
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer cb0[4], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t2
dcl_input_ps linear v1.xyz
dcl_input_ps linear v2.xyzw
dcl_input_ps linear v3.w
dcl_output o0.xyzw
dcl_temps 2
sample r0.xyzw, v1.xyxx, t1.xyzw, s1
sample r1.xyzw, v1.xyxx, t0.xyzw, s0
add r0.xyzw, r0.xyzw, -r1.xyzw
mad r0.xyzw, v3.wwww, r0.xyzw, r1.xyzw
sample r1.xyzw, v1.xyxx, t2.xyzw, s2
add r1.xyzw, -r0.xyzw, r1.xyzw
mad r0.xyzw, v1.zzzz, r1.xyzw, r0.xyzw
mul r0.xyz, r0.xyzx, v2.xyzx
mul o0.w, r0.w, v2.w
mad r0.xyz, r0.xyzx, cb0[3].xyzx, cb0[2].xyzx
min r0.xyz, r0.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
add r1.xyz, -r0.xyzx, cb0[0].xyzx
mad o0.xyz, cb0[1].xyzx, r1.xyzx, r0.xyzx
ret 
// Approximately 14 instruction slots used
