//God Rays - Disable
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   sampler2D Base;
//   sampler2D Base2;
//   sampler2D Base3;
//   float PassIndex;
//   float Power;
//   float RayIntensity;
//   float Threshold;
//   float4x4 global_LightPropertyMatrix;
//
//
// Registers:
//
//   Name                       Reg   Size
//   -------------------------- ----- ----
//   PassIndex                  c0       1
//   Power                      c1       1
//   RayIntensity               c2       1
//   Threshold                  c3       1
//   global_LightPropertyMatrix c220     3
//   Base                       s0       1
//   Base2                      s1       1
//   Base3                      s2       1
//

    ps_3_0
    def c4, 0.298999995, 0.587000012, 0.114, 0.166666672
    def c5, 1, 0.055555556, 0, 0
    def c6, 2, 0, 0, 0
    defi i0, 6, 0, 0, 0
    dcl_texcoord v0.xy  // In<4,5>
    dcl_texcoord1 v1.xy  // In<6,7>
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2

#line 16 "Shaders/RadialBlur.shdh"
    mov r0.x, c5.x
    add r0.x, r0.x, c0.x
    mul r0.x, r0.x, c5.y  // ::stepSize<0>
    mov r1.xy, v0  // In<4,5>
    add r0.yz, -r1.xxyw, v1.xxyw  // ::centerDir<0,1>

#line 25
    abs r0.w, c0.x

#line 20
    mov r1, c5.w  // ::blurResult<0,1,2>, ::i<0>
    rep i0
      mul r2.x, r0.x, r1.w  // ::offset<0>
      mad r2.xy, r0.yzzw, r2.x, v0  // ::texCoord<0,1>

#line 27
      texld r3, r2, s1  // ::sampledDepth<0>
      add r2.z, r3.x, -c5.x
      texld r3, r2, s2  // ::sampledColor<0,1,2>
      dp3 r2.x, c4, r3
      add r2.x, r2.x, -c3.x
      cmp r2.xyw, r2.x, r3.xyzz, c5.w
      add r2.xyw, r1.xyzz, r2  // ::blurResult<0,1,2>

#line 28
      cmp r2.xyz, -r2_abs.z, r2.xyww, r1  // ::blurResult<0,1,2>

#line 40
      add r3.xyz, r1, r3  // ::blurResult<0,1,2>

#line 25
      cmp r1.xyz, -r0.w, r2, r3  // ::blurResult<0,1,2>

#line 20
      add r1.w, r1.w, c5.x  // ::i<0>
    endrep

#line 43
    mul r1.xyz, r1, c4.w  // ::blurResult<0,1,2>

#line 33 "c:\Develop\LSProjects\build\shared\EyesOfAChild\Code\EoCApp\build\memory"
    dp2add r0.x, r0.yzzw, r0.yzzw, c5.w
    rsq r0.x, r0.x
    rcp_sat r0.x, r0.x
    add r0.x, -r0.x, c5.x  // ::attenuation<0>
    pow r1.w, r0.x, c1.x  // ::attenuation<0>

#line 37
    mul r0.xyz, r1.w, r1
    mul r0.xyz, r0, c2.x
    mul r1.x, r0.x, c220.z  // ::lightRays<0>
    mul r1.y, r0.y, c221.z  // ::lightRays<1>
    mul r1.z, r0.z, c222.z  // ::lightRays<2>

#line 44
    texld r0, v0, s0  // ::scene<0,1,2>
	
	// add oC0.xyz, r1, r0  // ::main<0,1,2>
mov oC0.xyz, r0  // ::main<0,1,2>
    mov oC0.w, c6.x  // ::main<3>

// approximately 42 instruction slots used (3 texture, 39 arithmetic)
 