//
// Generated by Microsoft (R) HLSL Shader Compiler 9.26.952.2844
//
// Parameters:
//
//   sampler2D baseTextureSampler;
//   sampler2D faceTextureSampler;
//   sampler2D maskTextureSampler;
//
//
// Registers:
//
//   Name               Reg   Size
//   ------------------ ----- ----
//   baseTextureSampler s0       1
//   maskTextureSampler s1       1
//   faceTextureSampler s2       1
//

    ps_3_0
    def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.5861027823e-43 // 470
    def c0, 1, 0.212599993, 0.715200007, 0.0722000003
    def c1, -0.5, 0.100000001, 1, 0
    dcl_texcoord v0.xy
    dcl_texcoord1 v1.xy
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2
    texld r0, v0, s0
    texld r1, v0, s1
    if_ge r1.x, c0.x
      texld r1, v1, s2
      dp3 r1.x, r1, c0.yzww
      add r1.y, r1.x, c1.x
      add r2.xyz, -r0, c0.x
      mad r1.z, r1.y, -c1.y, c1.z
      mul r3.xyz, r2, r1.z
      add r1.x, r1.x, r1.x
      mul r4.xyz, r0, r1.x
      mad r1.xzw, r2.xyyz, -r1.z, c0.x
      cmp r1.xzw, -r3.xyyz, c0.x, r1
      min r2.xyz, r4, c0.x
      cmp r1.xzw, r1.y, r1, c1.w
      cmp r2.xyz, r1.y, c1.w, r2
      add r0.xyz, r1.xzww, r2
    endif
    mov oC0, r0

// approximately 21 instruction slots used (3 texture, 18 arithmetic)
