//fog skip regex and fov in cb2[10].x
// ---- Created with 3Dmigoto v0.6.164 on Wed Mar 18 16:35:07 2026
Texture2D<float4> t5 : register(t5);

Texture2D<float4> t4 : register(t4);

Texture2D<float4> t3 : register(t3);

Texture2D<float4> t2 : register(t2);

Texture2D<float4> t1 : register(t1);

Texture2D<float4> t0 : register(t0);

SamplerState s5_s : register(s5);

SamplerState s4_s : register(s4);

SamplerState s3_s : register(s3);

SamplerState s2_s : register(s2);

SamplerState s1_s : register(s1);

SamplerState s0_s : register(s0);

cbuffer cb3 : register(b3)
{
  float4 cb3[26];
}

cbuffer cb2 : register(b2)
{
  float4 cb2[22];
}

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

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





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


void main(
  float4 v0 : SV_POSITION0,
  float4 v1 : TEXCOORD0,
  float3 v2 : TEXCOORD1,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2,r3,r4,r5,r6,r20;
  uint4 bitmask, uiDest;
  float4 fDest;
  
float4 s = StereoParams.Load(0);
float4 testeo = IniParams.Load(int2(90,0));   


  r0.x = cb1[5].z / v2.z;
  r0.xyz = v2.xyz * r0.xxx;
  r1.xy = v1.xy / v1.ww;
  r2.xyzw = t0.Sample(s0_s, r1.xy).xyzw;
  r0.w = cb1[7].x * r2.x + cb1[7].y;
  r0.w = 1 / r0.w;
  r2.xyz = r0.xyz * r0.www;
  
r2.x -= s.x * (r2.z - s.y) * cb2[10].x;  
  
  r3.xyz = cb2[19].xyz * r2.yyy;
  r2.xyw = cb2[18].xyz * r2.xxx + r3.xyz;
  r2.xyw = cb2[20].xyz * r2.zzz + r2.xyw;
  r2.xyw = cb2[21].xyz + r2.xyw;
  r3.xyz = -cb3[25].xyz + r2.xyw;
  r0.x = dot(r3.xyz, r3.xyz);
  r0.x = sqrt(r0.x);
  r0.x = -r0.z * r0.w + r0.x;
  r0.x = cb3[25].w * r0.x + r2.z;
  r0.x = saturate(r0.x * cb3[24].z + cb3[24].w);
  r3.xyzw = t1.Sample(s2_s, r1.xy).xyzw;
  r0.y = 1 + -r3.x;
  r0.x = r0.x * r0.y + r3.x;
  r0.yz = cb0[8].xy * r2.yy;
  r0.yz = cb0[7].xy * r2.xx + r0.yz;
  r0.yz = cb0[9].xy * r2.ww + r0.yz;
  r2.xyz = -cb1[4].xyz + r2.xyw;
  r0.yz = cb0[10].xy + r0.yz;
  r3.xyzw = t2.SampleBias(s1_s, r0.yz, -8).xyzw;
  r0.x = r3.w * r0.x;
  r0.xyz = cb0[5].xyz * r0.xxx;
  r0.w = dot(r2.xyz, r2.xyz);
  r0.w = rsqrt(r0.w);
  r3.xyz = -r2.xyz * r0.www + -cb0[3].xyz;
  r2.xyz = r2.xyz * r0.www;
  r0.w = dot(r3.xyz, r3.xyz);
  r0.w = max(0.00100000005, r0.w);
  r0.w = rsqrt(r0.w);
  r3.xyz = r3.xyz * r0.www;
  r4.xyzw = t5.Sample(s5_s, r1.xy).xyzw;
  r4.xyz = r4.xyz * float3(2,2,2) + float3(-1,-1,-1);
  r0.w = dot(r4.xyz, r4.xyz);
  r0.w = rsqrt(r0.w);
  r4.xyz = r4.xyz * r0.www;
  r0.w = saturate(dot(r4.xyz, r3.xyz));
  r1.z = saturate(dot(-cb0[3].xyz, r3.xyz));
  r3.xyzw = t4.Sample(s4_s, r1.xy).xyzw;
  r5.xyzw = t3.Sample(s3_s, r1.xy).xyzw;
  r6.xyzw = float4(1,1,1,1) + -r3.wxyz;
  r1.x = r6.x * r6.x;
  r1.x = max(0.00200000009, r1.x);
  r1.y = r1.x * r1.x;
  r1.w = r0.w * r1.y + -r0.w;
  r0.w = r1.w * r0.w + 1;
  r0.w = r0.w * r0.w + 1.00000001e-07;
  r1.y = 0.318309873 * r1.y;
  r0.w = r1.y / r0.w;
  r1.y = dot(r4.xyz, -r2.xyz);
  r1.w = saturate(dot(r4.xyz, -cb0[3].xyz));
  r2.x = 1 + -r1.x;
  r2.y = abs(r1.y) * r2.x + r1.x;
  r1.x = r1.w * r2.x + r1.x;
  r1.x = abs(r1.y) * r1.x;
  r1.y = 1 + -abs(r1.y);
  r1.x = r1.w * r2.y + r1.x;
  r1.x = 9.99999975e-06 + r1.x;
  r1.x = 0.5 / r1.x;
  r0.w = r1.x * r0.w;
  r0.w = 3.14159274 * r0.w;
  r0.w = r0.w * r1.w;
  r0.w = max(0, r0.w);
  r1.x = dot(r3.xyz, r3.xyz);
  r1.x = cmp(r1.x != 0.000000);
  r1.x = r1.x ? 1.000000 : 0;
  r0.w = r1.x * r0.w;
  r2.xyz = r0.www * r0.xyz;
  r0.w = 1 + -r1.z;
  r1.x = r1.z * r1.z;
  r1.x = dot(r1.xx, r6.xx);
  r1.x = -0.5 + r1.x;
  r1.z = r0.w * r0.w;
  r1.z = r1.z * r1.z;
  r0.w = r1.z * r0.w;
  r3.xyz = r6.yzw * r0.www + r3.xyz;
  r2.xyz = r3.xyz * r2.xyz;
  r0.w = r1.y * r1.y;
  r0.w = r0.w * r0.w;
  r0.w = r0.w * r1.y;
  r0.w = r1.x * r0.w + 1;
  r1.y = 1 + -r1.w;
  r1.z = r1.y * r1.y;
  r1.z = r1.z * r1.z;
  r1.y = r1.z * r1.y;
  r1.x = r1.x * r1.y + 1;
  r0.w = r1.x * r0.w;
  r0.w = r0.w * r1.w;
  r0.xyz = r0.xyz * r0.www;
  o0.xyz = r5.xyz * r0.xyz + r2.xyz;
  o0.w = 1;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.164 on Wed Mar 18 16:35:07 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float
// TEXCOORD                 0   xyzw        1     NONE   float   xy w
// TEXCOORD                 1   xyz         2     NONE   float   xyz
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer CB0[11], immediateIndexed
dcl_constantbuffer CB1[8], immediateIndexed
dcl_constantbuffer CB2[22], immediateIndexed
dcl_constantbuffer CB3[26], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_default
dcl_sampler s4, mode_default
dcl_sampler s5, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t2
dcl_resource_texture2d (float,float,float,float) t3
dcl_resource_texture2d (float,float,float,float) t4
dcl_resource_texture2d (float,float,float,float) t5
dcl_input_ps linear v1.xyw
dcl_input_ps linear v2.xyz
dcl_output o0.xyzw
dcl_temps 7
div r0.x, cb1[5].z, v2.z
mul r0.xyz, r0.xxxx, v2.xyzx
div r1.xy, v1.xyxx, v1.wwww
sample r2.xyzw, r1.xyxx, t0.xyzw, s0
mad r0.w, cb1[7].x, r2.x, cb1[7].y
div r0.w, l(1.000000, 1.000000, 1.000000, 1.000000), r0.w
mul r2.xyz, r0.wwww, r0.xyzx
mul r3.xyz, r2.yyyy, cb2[19].xyzx
mad r2.xyw, cb2[18].xyxz, r2.xxxx, r3.xyxz
mad r2.xyw, cb2[20].xyxz, r2.zzzz, r2.xyxw
add r2.xyw, r2.xyxw, cb2[21].xyxz
add r3.xyz, r2.xywx, -cb3[25].xyzx
dp3 r0.x, r3.xyzx, r3.xyzx
sqrt r0.x, r0.x
mad r0.x, -r0.z, r0.w, r0.x
mad r0.x, cb3[25].w, r0.x, r2.z
mad_sat r0.x, r0.x, cb3[24].z, cb3[24].w
sample r3.xyzw, r1.xyxx, t1.xyzw, s2
add r0.y, -r3.x, l(1.000000)
mad r0.x, r0.x, r0.y, r3.x
mul r0.yz, r2.yyyy, cb0[8].xxyx
mad r0.yz, cb0[7].xxyx, r2.xxxx, r0.yyzy
mad r0.yz, cb0[9].xxyx, r2.wwww, r0.yyzy
add r2.xyz, r2.xywx, -cb1[4].xyzx
add r0.yz, r0.yyzy, cb0[10].xxyx
sample_b r3.xyzw, r0.yzyy, t2.xyzw, s1, l(-8.000000)
mul r0.x, r0.x, r3.w
mul r0.xyz, r0.xxxx, cb0[5].xyzx
dp3 r0.w, r2.xyzx, r2.xyzx
rsq r0.w, r0.w
mad r3.xyz, -r2.xyzx, r0.wwww, -cb0[3].xyzx
mul r2.xyz, r0.wwww, r2.xyzx
dp3 r0.w, r3.xyzx, r3.xyzx
max r0.w, r0.w, l(0.001000)
rsq r0.w, r0.w
mul r3.xyz, r0.wwww, r3.xyzx
sample r4.xyzw, r1.xyxx, t5.xyzw, s5
mad r4.xyz, r4.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
dp3 r0.w, r4.xyzx, r4.xyzx
rsq r0.w, r0.w
mul r4.xyz, r0.wwww, r4.xyzx
dp3_sat r0.w, r4.xyzx, r3.xyzx
dp3_sat r1.z, -cb0[3].xyzx, r3.xyzx
sample r3.xyzw, r1.xyxx, t4.xyzw, s4
sample r5.xyzw, r1.xyxx, t3.xyzw, s3
add r6.xyzw, -r3.wxyz, l(1.000000, 1.000000, 1.000000, 1.000000)
mul r1.x, r6.x, r6.x
max r1.x, r1.x, l(0.002000)
mul r1.y, r1.x, r1.x
mad r1.w, r0.w, r1.y, -r0.w
mad r0.w, r1.w, r0.w, l(1.000000)
mad r0.w, r0.w, r0.w, l(1.000000012E-07)
mul r1.y, r1.y, l(0.318309873)
div r0.w, r1.y, r0.w
dp3 r1.y, r4.xyzx, -r2.xyzx
dp3_sat r1.w, r4.xyzx, -cb0[3].xyzx
add r2.x, -r1.x, l(1.000000)
mad r2.y, |r1.y|, r2.x, r1.x
mad r1.x, r1.w, r2.x, r1.x
mul r1.x, r1.x, |r1.y|
add r1.y, -|r1.y|, l(1.000000)
mad r1.x, r1.w, r2.y, r1.x
add r1.x, r1.x, l(0.000010)
div r1.x, l(0.500000), r1.x
mul r0.w, r0.w, r1.x
mul r0.w, r0.w, l(3.14159274)
mul r0.w, r1.w, r0.w
max r0.w, r0.w, l(0.000000)
dp3 r1.x, r3.xyzx, r3.xyzx
ne r1.x, r1.x, l(0.000000)
and r1.x, r1.x, l(0x3f800000)
mul r0.w, r0.w, r1.x
mul r2.xyz, r0.xyzx, r0.wwww
add r0.w, -r1.z, l(1.000000)
mul r1.x, r1.z, r1.z
dp2 r1.x, r1.xxxx, r6.xxxx
add r1.x, r1.x, l(-0.500000)
mul r1.z, r0.w, r0.w
mul r1.z, r1.z, r1.z
mul r0.w, r0.w, r1.z
mad r3.xyz, r6.yzwy, r0.wwww, r3.xyzx
mul r2.xyz, r2.xyzx, r3.xyzx
mul r0.w, r1.y, r1.y
mul r0.w, r0.w, r0.w
mul r0.w, r1.y, r0.w
mad r0.w, r1.x, r0.w, l(1.000000)
add r1.y, -r1.w, l(1.000000)
mul r1.z, r1.y, r1.y
mul r1.z, r1.z, r1.z
mul r1.y, r1.y, r1.z
mad r1.x, r1.x, r1.y, l(1.000000)
mul r0.w, r0.w, r1.x
mul r0.w, r1.w, r0.w
mul r0.xyz, r0.wwww, r0.xyzx
mad o0.xyz, r5.xyzx, r0.xyzx, r2.xyzx
mov o0.w, l(1.000000)
ret
// Approximately 0 instruction slots used

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