// ---- Created with 3Dmigoto v0.6.164 on Sun Aug 24 16:29:20 2025

SamplerState GlowTexture_sampler_s : register(s0);
SamplerState ProjectiveTexture_sampler_s : register(s1);
Texture2D<float4> GlowTexture : register(t0);
Texture2D<float4> ProjectiveTexture : register(t1);


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


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

  //r0.x = GlowTexture.Sample(GlowTexture_sampler_s, v1.xy).x;
  r0.x = GlowTexture.Sample(GlowTexture_sampler_s, v1.xy).x * 0.5; //half power
  r0.xyz = v2.xyz * r0.xxx;
  r0.w = ProjectiveTexture.Sample(ProjectiveTexture_sampler_s, w1.xy).x;
  r1.xyz = r0.xyz * r0.www;
  r0.x = r1.x + r1.y;
  o0.xyz = r1.xyz;
  r0.x = r0.z * r0.w + r0.x;
  o0.w = 0.333000004 * r0.x;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.164 on Sun Aug 24 16:29:20 2025
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// GlowTexture_sampler               sampler      NA          NA    0        1
// ProjectiveTexture_sampler         sampler      NA          NA    1        1
// GlowTexture                       texture  float4          2d    0        1
// ProjectiveTexture                 texture  float4          2d    1        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float
// TEXCOORD                 0   xy          1     NONE   float   xy
// TEXCOORD                 2     zw        1     NONE   float     zw
// 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_5_0
dcl_globalFlags refactoringAllowed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_input_ps linear v1.xy
dcl_input_ps linear v1.zw
dcl_input_ps linear v2.xyz
dcl_output o0.xyzw
dcl_temps 2
sample_indexable(texture2d)(float,float,float,float) r0.x, v1.xyxx, t0.xyzw, s0
mul r0.xyz, r0.xxxx, v2.xyzx
sample_indexable(texture2d)(float,float,float,float) r0.w, v1.zwzz, t1.yzwx, s1
mul r1.xyz, r0.wwww, r0.xyzx
add r0.x, r1.y, r1.x
mov o0.xyz, r1.xyzx
mad r0.x, r0.z, r0.w, r0.x
mul o0.w, r0.x, l(0.333000)
ret
// Approximately 9 instruction slots used

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