//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.2.67 on Mon Jan 01 13:11:45 2018
//
//
// Buffer Definitions: 
//
// cbuffer $Globals
// {
//
//   float4 g_vParams;                  // Offset:    0 Size:    16 [unused]
//   float4 g_aUVShiftData[64];         // Offset:   16 Size:  1024 [unused]
//   float4 bones[192];                 // Offset: 1040 Size:  3072 [unused]
//   
//   struct
//   {
//       
//       float4 vPlane;                 // Offset: 4112
//       float4 vSettings;              // Offset: 4128
//
//   } g_ClipPlane;                     // Offset: 4112 Size:    32 [unused]
//   float4x4 g_mCloudsShadowsSpace;    // Offset: 4144 Size:    64 [unused]
//   float4 g_vCloudsShadowDesc;        // Offset: 4208 Size:    16
//   float4 specColor;                  // Offset: 4224 Size:    16
//   float4 ControlData;                // Offset: 4240 Size:    16 [unused]
//   float4 difColor;                   // Offset: 4256 Size:    16 [unused]
//   float4 ambient;                    // Offset: 4272 Size:    16 [unused]
//   float4 lightCount;                 // Offset: 4288 Size:    16 [unused]
//   float4 g_avLightPos[2];            // Offset: 4304 Size:    32 [unused]
//   float4 g_avLightColor[2];          // Offset: 4336 Size:    32
//   float4 g_avConeDir[2];             // Offset: 4368 Size:    32 [unused]
//   float4 g_vAmbientSettings;         // Offset: 4400 Size:    16 [unused]
//   
//   struct
//   {
//       
//       float4 vDesc;                  // Offset: 4416
//       float4 vFogLayerPlane;         // Offset: 4432
//       float4 vFogLayerColor;         // Offset: 4448
//       float4 vFogLayerSettings;      // Offset: 4464
//       float4 vFogColor;              // Offset: 4480
//       float4 vFogDistance;           // Offset: 4496
//
//   } g_FogDesc;                       // Offset: 4416 Size:    96 [unused]
//   float4x4 g_mViewProj;              // Offset: 4512 Size:    64 [unused]
//   float4 g_vCamPos;                  // Offset: 4576 Size:    16 [unused]
//   float4 g_vSkyColor;                // Offset: 4592 Size:    16 [unused]
//   float4 g_vFogK;                    // Offset: 4608 Size:    16 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// CloudsShadowsSampler              sampler      NA          NA    0        1
// mySampler                         sampler      NA          NA    1        1
// mySampler                         texture  float4          2d    0        1
// CloudsShadowsSampler              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   xy          1     NONE   float   xy  
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyz         3     NONE   float   xyz 
// TEXCOORD                 3   xyz         4     NONE   float   xyz 
// TEXCOORD                 4   xyzw        5     NONE   float   xyzw
// COLOR                    0   xyzw        6     NONE   float       
// COLOR                    1   xyzw        7     NONE   float       
// SV_ClipDistance          0   x           8  CLIPDST   float       
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer cb0[272], 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.xy
dcl_input_ps linear v2.xyzw
dcl_input_ps linear v3.xyz
dcl_input_ps linear v4.xyz
dcl_input_ps linear v5.xyzw
dcl_output o0.xyzw
dcl_temps 2
dp3 r0.x, v5.xyzx, v5.xyzx
rsq r0.x, r0.x
mul r0.xyz, r0.xxxx, v5.xyzx
mul r0.w, v5.w, l(4.710000)
div r0.w, l(2.500000), r0.w
mul r0.xyz, r0.wwww, r0.xyzx
dp3 r0.w, v4.xyzx, v4.xyzx
rsq r0.w, r0.w
mad r0.xyz, v4.xyzx, r0.wwww, r0.xyzx
dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx
dp3 r0.w, v2.xyzx, v2.xyzx
rsq r0.w, r0.w
mul r1.xyz, r0.wwww, v2.xyzx
dp3 r0.x, r0.xyzx, r1.xyzx
max r0.x, r0.x, l(0.000000)
log r0.x, r0.x
mul r0.x, r0.x, cb0[264].w
exp r0.x, r0.x
mul r0.x, r0.x, v2.w
mul r0.xyz, r0.xxxx, cb0[271].xyzx
mul r0.xyz, r0.xyzx, cb0[264].xyzx
sample r1.xyzw, v3.xyxx, t1.xyzw, s0
add r0.w, r1.y, l(-1.000000)
mul r1.x, v3.z, cb0[263].z
mad r0.w, r1.x, r0.w, l(1.000000)
mul r0.xyz, r0.wwww, r0.xyzx
sample r1.xyzw, v1.xyxx, t0.xyzw, s1
mul o0.xyz, r0.xyzx, r1.wwww
mov o0.w, l(0)
ret 
// Approximately 32 instruction slots used
