// ---- Created with 3Dmigoto v1.3.16 on Wed May  6 13:51:54 2026
Texture2D<float4> t0 : register(t0);

SamplerState s0_s : register(s0);

cbuffer cb1 : register(b1)
{
  float4 cb1[9];
}

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




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


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(cb1[8].x < 0.5);
  r1.xyzw = t0.SampleBias(s0_s, v2.xy, cb0[61].x).xyzw;
  r2.xyzw = cb1[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;
  //r1.xyz = cb1[7].xxx * r0.xyz + r1.xyz;
  r0.xyzw = float4(-1,-1,-1,-1) + cb1[6].xyzw;
  r0.xyzw = cb1[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 Wed May  6 13:51:54 2026
//
//
// 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[62], immediateIndexed
dcl_constantbuffer CB1[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, cb1[8].x, l(0.500000)
sample_b r1.xyzw, v2.xyxx, t0.xyzw, s0, cb0[61].x
add r2.xyzw, r1.xyzw, cb1[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, cb1[7].xxxx, r0.xyzx, r1.xyzx
add r0.xyzw, cb1[6].xyzw, l(-1.000000, -1.000000, -1.000000, -1.000000)
mad r0.xyzw, cb1[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

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