//Specular 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 13:26:29 2023
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   float4 rtParams0;                  // Index:    0.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
// NORMAL                   0   xyz         1     NONE   float   xyz
// TANGENT                  0   xyz         2     NONE   float   xyz
// TEXCOORD                 0   xy          3     NONE   float   xy
//
//
// 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   xyz         2     NONE   float   xyz
// TEXCOORD                 2   xyz         3     NONE   float   xyz
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[1], immediateIndexed
dcl_input v1.xyz
dcl_input v2.xyz
dcl_input v3.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_output o2.xyz
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

ge r15.x, v3.x, l(-1.0)
lt r15.y, v3.x, l(1.0)
and r15.x, r15.x, r15.y

mov r23.xy, v3.xyxx
add r23.x, r25.x, r23.x

mov o0.xy, r23.xyxx
mov o0.zw, l(0,0,0,1.000000)
add r0.xy, v3.xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
mul r0.x, r0.x, cb0[0].z

mad r0.y, -r0.y, l(0.500000), l(1.000000)
mul r1.y, r0.y, cb0[0].w
mul r1.x, r0.x, l(0.500000)

mad r1.x, r25.x, l(0.5), r1.x

add o1.xy, r1.xyxx, cb0[0].xyxx
mov o2.xyz, v2.xyzx
mov o3.xyz, v1.xyzx
ret
// Approximately 11 instruction slots used
