//
// 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
// {
//
//   float4x4 viewproj;                 // Offset:    0 Size:    64 [unused]
//   float4 cv4;                        // Offset:   64 Size:    16
//   float4 cam;                        // Offset:   80 Size:    16 [unused]
//   float4 lightInfo[4];               // Offset:   96 Size:    64
//   float4 lightCount;                 // Offset:  160 Size:    16 [unused]
//   float4 ambient;                    // Offset:  176 Size:    16
//   
//   struct
//   {
//       
//       float4 vDesc;                  // Offset:  192
//       float4 vFogLayerPlane;         // Offset:  208
//       float4 vFogLayerColor;         // Offset:  224
//       float4 vFogLayerSettings;      // Offset:  240
//       float4 vFogColor;              // Offset:  256
//       float4 vFogDistance;           // Offset:  272
//
//   } g_FogDesc;                       // Offset:  192 Size:    96 [unused]
//   float4 bright;                     // Offset:  288 Size:    16
//   float4 camVector;                  // Offset:  304 Size:    16 [unused]
//   float4 SunCamK;                    // Offset:  320 Size:    16
//   float3 layerK;                     // Offset:  336 Size:    12 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// mySampler                         sampler      NA          NA    0        1
// normalSampler                     sampler      NA          NA    1        1
// zSampler                          sampler      NA          NA    2        1
// mySkySampler                      sampler      NA          NA    3        1
// zSampler                          texture  float4          2d    0        1
// mySampler                         texture  float4          2d    1        1
// mySkySampler                      texture  float4          2d    2        1
// normalSampler                     texture  float4          2d    3        1
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float       
// COLOR                    0   xyzw        1     NONE   float   xyz 
// TEXCOORD                 0   xyz         2     NONE   float   xy  
// TEXCOORD                 1   xyzw        3     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[21], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, 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_resource_texture2d (float,float,float,float) t3
dcl_input_ps linear v1.xyz
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xyw
dcl_output o0.xyzw
dcl_temps 4
sample r0.xyzw, v2.xyxx, t0.xyzw, s2
add r0.x, r0.x, -cb0[4].w
mul_sat r0.x, r0.x, l(5.000000)
lt r0.y, r0.x, l(0.00784313772)
if_nz r0.y
  discard_nz l(-1)
endif 
sample r1.xyzw, v2.xyxx, t1.xyzw, s0
div r0.yz, v3.xxyx, v3.wwww
sample r2.xyzw, r0.yzyy, t2.xyzw, s3
sample r3.xyzw, v2.xyxx, t3.xyzw, s1
mad r0.yzw, r3.yyzx, l(0.000000, 2.000000, 2.000000, 2.000000), l(0.000000, -1.000000, -1.000000, -1.000000)
mul r0.yw, r0.wwwy, cb0[18].zzzz
dp3 r1.w, r0.yzwy, r0.yzwy
rsq r1.w, r1.w
mul r0.yzw, r0.yyzw, r1.wwww
dp3 r0.y, r0.yzwy, -cb0[6].xyzx
max r0.y, r0.y, l(0.000000)
mul r0.yzw, r0.yyyy, cb0[7].xxyz
mul r3.xyz, cb0[11].xyzx, cb0[18].xxxx
mad r0.yzw, r0.yyzw, cb0[20].xxxx, r3.xxyz
mul r3.xyz, r0.yzwy, r1.xyzx
mad r0.yzw, -r1.xxyz, r0.yyzw, r2.xxyz
mad o0.xyz, v1.xyzx, r0.yzwy, r3.xyzx
mov o0.w, r0.x
ret 
// Approximately 26 instruction slots used
