// ---- Created with 3Dmigoto v1.3.16 on Tue Dec 24 17:07:26 2024
Texture2D<float4> t0 : register(t0);

SamplerState s0_s : register(s0);

cbuffer cb0 : register(b0)
{
  float4 cb0[9];
}




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


void main(
  float4 v0 : SV_POSITION0,
  float4 v1 : COLOR0,
  float2 v2 : TEXCOORD0,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.x = cmp(cb0[8].x < 0.5);
  r1.xyzw = t0.Sample(s0_s, v2.xy).xyzw;
  r2.xyzw = cb0[5].xyzw + r1.xyzw;
  r0.xyzw = r0.xxxx ? r2.xyzw : r1.xyzw;
  r1.xyzw = v1.xyzw * r0.xyzw;
  r0.w = dot(r1.xyz, float3(0.212672904,0.715152204,0.0721750036));
  r0.xyz = -r0.xyz * v1.xyz + r0.www;
  // modified
  if (IniParams[150].x == 1) {
    r1.xyz = cb0[7].xxx * r0.xyz + r1.xyz;
  }
  // modified
  r0.xyzw = float4(-1,-1,-1,-1) + cb0[6].xyzw;
  r0.xyzw = cb0[7].yyyy * r0.xyzw + float4(1,1,1,1);
  o0.xyzw = r1.xyzw * r0.xyzw;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Tue Dec 24 17:07:26 2024
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xy          2     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer CB0[9], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 3
lt r0.x, cb0[8].x, l(0.500000)
sample r1.xyzw, v2.xyxx, t0.xyzw, s0
add r2.xyzw, r1.xyzw, cb0[5].xyzw
movc r0.xyzw, r0.xxxx, r2.xyzw, r1.xyzw
mul r1.xyzw, r0.xyzw, v1.xyzw
dp3 r0.w, r1.xyzx, l(0.212672904, 0.715152204, 0.072175, 0.000000)
mad r0.xyz, -r0.xyzx, v1.xyzx, r0.wwww
mad r1.xyz, cb0[7].xxxx, r0.xyzx, r1.xyzx
add r0.xyzw, cb0[6].xyzw, l(-1.000000, -1.000000, -1.000000, -1.000000)
mad r0.xyzw, cb0[7].yyyy, r0.xyzw, l(1.000000, 1.000000, 1.000000, 1.000000)
mul o0.xyzw, r0.xyzw, r1.xyzw
ret
// Approximately 0 instruction slots used

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