// Reflection Mask Texture

SamplerState ReflectionMaskTextureSampler_s : register(s2);
Texture2D<float4> ReflectionMaskTexture : register(t0);


// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);


void main( 
  float2 v0 : TEXCOORD0,
  out float4 o0 : SV_Target0)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.x = ReflectionMaskTexture.SampleLevel(ReflectionMaskTextureSampler_s, v0.xy, 0, int2(0, 0)).x;
  r0.x = 0.451862752 * r0.x;
  r0.y = ReflectionMaskTexture.SampleLevel(ReflectionMaskTextureSampler_s, v0.xy, 0, int2(0, -1)).x;
  r0.x = r0.y * 0.274068624 + r0.x;
  r0.y = ReflectionMaskTexture.SampleLevel(ReflectionMaskTextureSampler_s, v0.xy, 0, int2(0, 1)).x;
  o0.x = r0.y * 0.274068624 + r0.x;
  o0.yzw = float3(0,0,0);
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20546
//
//   using 3Dmigoto v1.2.57 on Fri Jun 02 17:48:16 2017
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// ReflectionMaskTextureSampler      sampler      NA          NA    2        1
// ReflectionMaskTexture             texture  float4          2d    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xy          0     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_sampler s2, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v0.xy
dcl_output o0.xyzw
dcl_temps 1
sample_l_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r0.x, v0.xyxx, t0.xyzw, s2, l(0.000000)
mul r0.x, r0.x, l(0.451862752)
sample_l_aoffimmi_indexable(0,-1,0)(texture2d)(float,float,float,float) r0.y, v0.xyxx, t0.yxzw, s2, l(0.000000)
mad r0.x, r0.y, l(0.274068624), r0.x
sample_l_aoffimmi_indexable(0,1,0)(texture2d)(float,float,float,float) r0.y, v0.xyxx, t0.yxzw, s2, l(0.000000)
mad o0.x, r0.y, l(0.274068624), r0.x
mov o0.yzw, l(0,0,0,0)
ret 
// Approximately 8 instruction slots used

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
