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

cbuffer cbPaintParam : register(b10)
{
  float4x4 FC_PaintMatrixView : packoffset(c0);
  float4 FC_PaintParam : packoffset(c4);
  float4 FC_OccTexRcpSize : packoffset(c5);
  float4x4 FC_PaintCubeProjMatrix : packoffset(c6);
  float4 g_PaintMaterialParamScale : packoffset(c10);
  float4 FC_PaintEraseColor : packoffset(c11);
  float4 FC_PaintFadeParam : packoffset(c12);
}



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


void main( 
  float4 v0 : SV_Position0,
  float4 v1 : COLOR0,
  uint v2 : SV_IsFrontFace0,
  out float4 o0 : SV_Target0,
  out float4 o1 : SV_Target1)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.x = cmp(FC_PaintFadeParam.x < v1.z);
  if (r0.x != 0) discard;
  r0.x = -FC_PaintFadeParam.y + v1.z;
  r0.x = saturate(FC_PaintFadeParam.z * r0.x);
  r0.x = 1 + -r0.x;
  r0.w = FC_PaintEraseColor.w * r0.x;
  r0.xyz = FC_PaintEraseColor.xyz;
  o0.xyzw = r0.xyzw;
  o1.xyzw = r0.xyzw;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Original ASM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20546
//
//
// Buffer Definitions: 
//
// cbuffer cbPaintParam
// {
//
//   float4x4 FC_PaintMatrixView;       // Offset:    0 Size:    64 [unused]
//   float4 FC_PaintParam;              // Offset:   64 Size:    16 [unused]
//   float4 FC_OccTexRcpSize;           // Offset:   80 Size:    16 [unused]
//   float4x4 FC_PaintCubeProjMatrix;   // Offset:   96 Size:    64 [unused]
//   float4 g_PaintMaterialParamScale;  // Offset:  160 Size:    16 [unused]
//   float4 FC_PaintEraseColor;         // Offset:  176 Size:    16
//   float4 FC_PaintFadeParam;          // Offset:  192 Size:    16
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// cbPaintParam                      cbuffer      NA          NA   10        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float       
// COLOR                    0   xyzw        1     NONE   float     z 
// SV_IsFrontFace           0   x           2    FFACE    uint       
//
//
// 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_constantbuffer cb10[13], immediateIndexed
dcl_input_ps linear v1.z
dcl_output o0.xyzw
dcl_output o1.xyzw
dcl_temps 1
lt r0.x, cb10[12].x, v1.z
discard_nz r0.x
add r0.x, v1.z, -cb10[12].y
mul_sat r0.x, r0.x, cb10[12].z
add r0.x, -r0.x, l(1.000000)
mul r0.w, r0.x, cb10[11].w
mov r0.xyz, cb10[11].xyzx
mov o0.xyzw, r0.xyzw
mov o1.xyzw, r0.xyzw
ret 
// Approximately 10 instruction slots used

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