// ---- Created with 3Dmigoto v0.6.164 on Thu Aug 14 16:13:50 2025

SamplerState S000_DiffuseTexture_sampler_s : register(s8);
SamplerState S015_DiffuseTexture1_sampler_s : register(s9);
Texture2D<float4> S000_DiffuseTexture : register(t8);
Texture2D<float4> S015_DiffuseTexture1 : register(t9);


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


void main(
  float4 v0 : SV_Position0,
  float4 v1 : TEXCOORD0,
  float4 v2 : TEXCOORD1,
  float4 v3 : TEXCOORD2,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.w = S000_DiffuseTexture.Sample(S000_DiffuseTexture_sampler_s, v1.xy).y;
  r1.xyzw = S015_DiffuseTexture1.Sample(S015_DiffuseTexture1_sampler_s, v1.zw).xyzw;
  r0.xyz = float3(1,1,1) + -v3.xyz;
  r0.xyzw = v3.xyzw * r1.xyzw + r0.xyzw;
  o0.xyzw = v2.xyzw * r0.xyzw;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.164 on Thu Aug 14 16:13:50 2025
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// S000_DiffuseTexture_sampler       sampler      NA          NA    8        1
// S015_DiffuseTexture1_sampler      sampler      NA          NA    9        1
// S000_DiffuseTexture               texture  float4          2d    8        1
// S015_DiffuseTexture1              texture  float4          2d    9        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyzw        3     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_sampler s8, mode_default
dcl_sampler s9, mode_default
dcl_resource_texture2d (float,float,float,float) t8
dcl_resource_texture2d (float,float,float,float) t9
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xyzw
dcl_input_ps linear v3.xyzw
dcl_output o0.xyzw
dcl_temps 2
sample_indexable(texture2d)(float,float,float,float) r0.w, v1.xyxx, t8.xzwy, s8
sample_indexable(texture2d)(float,float,float,float) r1.xyzw, v1.zwzz, t9.xyzw, s9
add r0.xyz, -v3.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad r0.xyzw, v3.xyzw, r1.xyzw, r0.xyzw
mul o0.xyzw, r0.xyzw, v2.xyzw
ret
// Approximately 6 instruction slots used

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