//
// 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_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]
//   float4 specColor;                  // Offset: 4144 Size:    16 [unused]
//   float4 difColor;                   // Offset: 4160 Size:    16 [unused]
//   float4x4 g_mViewProj;              // Offset: 4176 Size:    64 [unused]
//   float4 g_vCamPos;                  // Offset: 4240 Size:    16 [unused]
//   float MAX_DISTANCE_SCALE;          // Offset: 4256 Size:     4 [unused]
//      = 0x435c0000 
//   float4 ExPos[4];                   // Offset: 4272 Size:    64 [unused]
//   float4 ExRad[4];                   // Offset: 4336 Size:    64 [unused]
//   float4 g_vExVolumeSettings;        // Offset: 4400 Size:    16
//   float4 g_vExVolumeRect;            // Offset: 4416 Size:    16 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// VolumeDepthSampler                sampler      NA          NA    0        1
// VolumeAlphaSampler                sampler      NA          NA    1        1
// mySampler                         sampler      NA          NA    2        1
// mySampler                         texture  float4          2d    0        1
// VolumeDepthSampler                texture  float4          2d    1        1
// VolumeAlphaSampler                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   xy          1     NONE   float   xy  
// TEXCOORD                 1   xyzw        2     NONE   float   xy w
// COLOR                    0   xyzw        3     NONE   float      w
// SV_ClipDistance          0   x           4  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[276], 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.xy
dcl_input_ps linear v2.xyw
dcl_input_ps linear v3.w
dcl_output o0.xyzw
dcl_temps 4
sample r0.xyzw, v1.xyxx, t0.wxyz, s2
mul r0.x, r0.x, v3.w
div r1.xy, v2.xyxx, v2.wwww
lt r1.z, l(0.001000), r0.x
sample r2.xyzw, r1.xyxx, t1.xyzw, s0
sample r3.xyzw, r1.xyxx, t2.xyzw, s1
if_nz r1.z
  max r1.x, cb0[275].x, l(0.000000)
  mad r1.y, -r1.x, l(0.500000), r2.x
  mul r1.z, r3.w, r3.w
  add r1.y, -r1.y, v2.w
  div_sat r1.x, r1.y, r1.x
  mad r1.x, -r1.x, r1.z, l(1.000000)
  mul r0.x, r0.x, r1.x
endif 
mov o0.xyzw, r0.yzwx
ret 
// Approximately 17 instruction slots used
