//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.2.67 on Mon Jan 01 13:11:47 2018
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// MeshTextureSampler                sampler      NA          NA    0        1
// LerpSampler                       sampler      NA          NA    1        1
// MeshTextureSampler                texture  float4          2d    0        1
// g_tSlope0                         texture  float4          2d    1        1
// g_tSlope1                         texture  float4          2d    2        1
// g_tSlope2                         texture  float4          2d    3        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float       
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xy          2     NONE   float       
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
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_resource_texture2d (float,float,float,float) t2
dcl_resource_texture2d (float,float,float,float) t3
dcl_input_ps linear v1.xyzw
dcl_output o0.xyzw
dcl_temps 4
sample r0.xyzw, v1.xyxx, t0.xyzw, s0
sample r1.xyzw, v1.zwzz, t1.xyzw, s1
lt r0.x, l(0.010000), r0.y
if_nz r0.x
  sample r2.xyzw, v1.zwzz, t2.xyzw, s1
  add r0.x, r0.y, r0.y
  min r0.x, r0.x, l(1.000000)
  add r0.z, -r1.y, r2.y
  mad r2.xyzw, r0.xxxx, r0.zzzz, r1.yyyy
  lt r0.x, l(0.500000), r0.y
  if_nz r0.x
    sample r3.xyzw, v1.zwzz, t3.xyzw, s1
    mad r0.x, r0.y, l(2.000000), l(-1.000000)
    add r0.y, -r2.w, r3.y
    mad o0.xyzw, r0.xxxx, r0.yyyy, r2.wwww
  else 
    mov o0.xyzw, r2.xyzw
  endif 
else 
  mov o0.xyzw, r1.yyyy
endif 
ret 
// Approximately 22 instruction slots used
