// ---- Created with 3Dmigoto v1.2.35 on Tue Apr 26 22:30:26 2016

SamplerState SS_ClampPoint_s : register(s7);
SamplerState SS_WrapLinear_s : register(s8);
Texture2D<float4> g_IrradianceTexture : register(t6);
Texture2D<float4> g_SpecularAccTexture : register(t7);
Texture2D<float4> g_ShadowTexture : register(t32);


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


void main( 
  float4 v0 : SV_POSITION0,
  float4 v1 : TEXCOORD0,
  float4 v2 : TEXCOORD1,
  out float4 o0 : SV_TARGET0,
  out float4 o1 : SV_TARGET1)
{
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyz = g_IrradianceTexture.Sample(SS_ClampPoint_s, v1.xy).xyz;
  r1.xy = g_ShadowTexture.Sample(SS_WrapLinear_s, v1.xy).xy;
  r0.w = r1.x * r1.y;
  o0.xyz = r0.xyz * r0.www;
  o0.w = 1;
  r0.xyz = g_SpecularAccTexture.Sample(SS_ClampPoint_s, v1.xy).xyz;
  o1.xyz = r0.xyz * r0.www;
  o1.w = 1;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Original ASM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20546
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// SS_ClampPoint                     sampler      NA          NA    7        1
// SS_WrapLinear                     sampler      NA          NA    8        1
// g_IrradianceTexture               texture  float4          2d    6        1
// g_SpecularAccTexture              texture  float4          2d    7        1
// g_ShadowTexture                   texture  float4          2d   32        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       
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET                0   xyzw        0   TARGET   float   xyzw
// SV_TARGET                1   xyzw        1   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_sampler s7, mode_default
dcl_sampler s8, mode_default
dcl_resource_texture2d (float,float,float,float) t6
dcl_resource_texture2d (float,float,float,float) t7
dcl_resource_texture2d (float,float,float,float) t32
dcl_input_ps linear v1.xy
dcl_output o0.xyzw
dcl_output o1.xyzw
dcl_temps 2
sample_indexable(texture2d)(float,float,float,float) r0.xyz, v1.xyxx, t6.xyzw, s7
sample_indexable(texture2d)(float,float,float,float) r1.xy, v1.xyxx, t32.xyzw, s8
mul r0.w, r1.y, r1.x
mul o0.xyz, r0.wwww, r0.xyzx
mov o0.w, l(1.000000)
sample_indexable(texture2d)(float,float,float,float) r0.xyz, v1.xyxx, t7.xyzw, s7
mul o1.xyz, r0.wwww, r0.xyzx
mov o1.w, l(1.000000)
ret 
// Approximately 9 instruction slots used

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