//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.17672
//
//   using 3Dmigoto v1.2.27 on Mon Feb 08 02:29:20 2016
//
//
// Buffer Definitions: 
//
// cbuffer MaterialBuffer
// {
//
//   float4 MaterialParams[512];        // Offset:    0 Size:  8192
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// SamplerGenericTrilinearWrap       sampler      NA          NA   11        1
// p_default_Setup_n10_n77_Texture_texture    texture  float4          2d    0        1
// p_default_Setup_n10_9075B4F026705685_cp2_Param_texture    texture  float4          2d    1        1
// p_default_Setup_n3_n77_Texture_texture    texture  float4          2d    2        1
// MaterialBuffer                    cbuffer      NA          NA    3        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float       
// COLOR                    0   xyzw        1     NONE   float   x   
// TEXCOORD                 0   xyzw        2     NONE   float   xy  
// TEXCOORD                 2   xyz         3     NONE   float   xyz 
// PSIZE                    0   x           4     NONE    uint       
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb3[5], immediateIndexed
dcl_sampler s11, 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.x
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xyz
dcl_output o0.xyzw
dcl_temps 2
mul r0.xy, v2.xyxx, cb3[2].xyxx
sample_indexable(texture2d)(float,float,float,float) r0.x, r0.xyxx, t0.yxzw, s11
add r0.y, -cb3[2].w, cb3[3].w
mad r0.x, r0.x, r0.y, cb3[2].w
add r0.y, cb3[3].x, -cb3[4].x
mul r1.xyzw, v2.xyxy, cb3[1].xyzw
sample_indexable(texture2d)(float,float,float,float) r0.z, r1.xyxx, t2.xzyw, s11
sample_indexable(texture2d)(float,float,float,float) r1.y, r1.zwzz, t1.yxzw, s11
mad r0.y, r0.z, r0.y, cb3[4].x
add r0.y, r0.y, l(-1.000000)
add_sat r0.z, cb3[0].w, cb3[2].z
mad r0.y, r0.z, r0.y, l(1.000000)
add r0.x, -r0.y, r0.x
mad_sat r1.x, v1.x, cb3[3].z, cb3[3].y
mov r1.z, l(1.000000)
dp3_sat r0.z, cb3[0].xyzx, r1.xyzx
mad r0.x, r0.z, r0.x, r0.y
max r0.x, r0.x, l(2.000000)
log r0.x, r0.x
add r0.x, r0.x, l(-1.000000)
mul r0.x, r0.x, l(0.0833333358)
min o0.w, r0.x, l(1.000000)
dp3 r0.x, v3.xyzx, v3.xyzx
rsq r0.x, r0.x
mul o0.xyz, r0.xxxx, v3.xyzx
ret 
// Approximately 26 instruction slots used
