//
// Generated by Microsoft (R) D3DX9 Shader Compiler 9.12.589.0000
//
//   fxc /T ps_3_0 /E HPS_Smoke_L_Depth_Illum_PS /Fo HPS_L_Illum_PS.o /Fc
//    HPS_ILLUM_L_PS.ac GameTools_HPS_Smoke_L_Depth.hlsl
//
//
// Parameters:
//
//   sampler2D $Texture;
//   sampler2D $depthTexture;
//   sampler2D $illumVolume;
//
//
// Registers:
//
//   Name          Reg   Size
//   ------------- ----- ----
//   $Texture      s0       1
//   $depthTexture s1       1
//   $illumVolume  s2       1
//

    ps_3_0
    def c0, 1, 0, 0.5, -0.5
    def c1, -0.330000013, -0.5, -0.660000026, 3.030303
    def c2, 5.88235283, 6.25, 2.94117641, 0
    dcl_texcoord1 v0.z
    dcl_texcoord v1.xy
    dcl_texcoord2 v2.x
    dcl_texcoord4 v3
    dcl_texcoord5 v4.xy
    dcl_texcoord6 v5
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2
    texld r1, v1, s0
    cmp r0.w, -r1_abs.x, c0.x, c0.y
    mov r0, -r0.w
    texkill r0
    mad r0.xy, v5, c0.zwzw, c0.z
    texld r0, r0, s2
    rcp r2.w, v5.w
    mul r1.z, r2.w, v5.z
    add r2.z, r0.x, -c0.x
    mul r1.z, r1.z, c1.w
    mad r1.z, r1.z, r2.z, c0.x
    mad r3.xyz, v5.z, r2.w, c1
    mad r2.xyz, v5.z, -r2.w, -c1
    cmp r3.w, r3.x, c0.x, r1.z
    cmp r2.xy, r2, c0.y, c0.x
    cmp r4.xy, r3.yzzw, c0.y, c0.x
    mul r3.xyz, r3, c2
    add r2.w, v2.x, v2.x
    add r1.z, r1.x, c0.w
    add r1.y, -r1.y, c0.z
    mad r1.z, r2.w, r1.z, v0.z
    mad r4.w, r2.w, r1.y, v0.z
    mul r2.xy, r2, r4
    add r2.w, r1.z, -r4.w
    lrp r1.xyz, r3, r0.yzww, r0
    rcp r2.w, r2.w
    texld r0, v4, s1
    add r0.w, -r4.w, r0.x
    cmp r0.z, -r2.x, r3.w, r1.x
    mul_sat r0.w, r2.w, r0.w
    cmp r0.z, -r2.y, r0.z, r1.y
    mul r0.w, r1.w, r0.w
    cmp r0.z, r2.z, r0.z, r1.z
    cmp r0.w, -r0_abs.x, r1.w, r0.w
    mul oC0.xyz, r0.z, v3
    mul oC0.w, r0.w, v3.w

// approximately 36 instruction slots used (3 texture, 33 arithmetic)
