//Fog VS. Consequences for the sides of the screen. Better fix in PS.
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.181 on Wed Jul 12 11:45:40 2023
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   float4 projParams;                 // Index:    0.xyzw           Components:     4 [unused]
//   float4 rtParams0;                  // Index:    1.xyzw           Components:     4
//   float4 rtParams1;                  // Index:    2.xyzw           Components:     4
//   float4 rtParams2;                  // Index:    3.xyzw           Components:     4
//   float4 rtParams3;                  // Index:    4.xyzw           Components:     4
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyz         0     NONE   float   xyz
// TEXCOORD                 0   xy          1     NONE   float   xy
// TEXCOORD                 1   xyz         2     NONE   float   xyz
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy
// TEXCOORD                 1     zw        1     NONE   float     zw
// TEXCOORD                 2   xy          2     NONE   float   xy
// TEXCOORD                 3     zw        2     NONE   float     zw
// TEXCOORD                 4   xyz         3     NONE   float   xyz
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[5], immediateIndexed
dcl_input v0.xyz
dcl_input v1.xy
dcl_input v2.xyz
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_output o1.zw
dcl_output o2.xy
dcl_output o2.zw
dcl_output o3.xyz
dcl_temps 29
dcl_resource_texture2d (float,float,float,float) t125
ld_indexable(texture2d)(float,float,float,float) r25.xyzw, l(0, 0, 0, 0), t125.xyzw
dcl_resource_texture1d (float,float,float,float) t120
ld_indexable(texture1d)(float,float,float,float) r23.xyzw, l(3, 0, 0, 0), t120.xyzw

mov r20.xyz, v0.xyzx
mov r21.xy, v1.xyxx

ieq r24.x, r23.x, l(2.0)

if_nz r24.x
add r20.x, r25.x, r20.x
mad r21.x, r25.x, l(0.5), r21.x
endif

mov o0.xyz, r20.xyzx
mov o0.w, l(1.000000)
mad o1.xy, r21.xyxx, cb0[1].zwzz, cb0[1].xyxx
mad o1.zw, r21.xxxy, cb0[2].zzzw, cb0[2].xxxy
mad o2.xy, r21.xyxx, cb0[3].zwzz, cb0[3].xyxx
mad o2.zw, r21.xxxy, cb0[4].zzzw, cb0[4].xxxy
mov o3.xyz, v2.xyzx
ret
// Approximately 8 instruction slots used
