//Sun position VS 3 (lens flares).
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Sun May 23 15:28:59 2021
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// ATTRIBUTE                0   xy          0     NONE   float
// ATTRIBUTE                1   xy          1     NONE   float   xy
// SV_InstanceID            0   x           2   INSTID    uint   x
//
//
// 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   xy          2     NONE   float   xy
// TEXCOORD                 2   xy          3     NONE   float   xy
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[2], immediateIndexed
dcl_constantbuffer cb1[5], immediateIndexed
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 v1.xy
dcl_input_sgv v2.x, instance_id
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_output o2.xy
dcl_output o3.xy
dcl_temps 40
dcl_resource_texture2d (float,float,float,float) t125
ld_indexable(texture2d)(float,float,float,float) r25.xyzw, l(0, 0, 0, 0), t125.xyzw
mov r0.x, v1.x
mul r0.y, v1.y, cb0[1].w
add r0.zw, cb0[1].xxxy, l(0.000000, 0.000000, -1.000000, 0.500000)
max r0.z, r0.z, l(1.000000)
div r1.x, r0.w, cb0[1].z
utof r0.w, v2.x
div r0.z, r0.w, r0.z
mov o3.x, r0.w
sample_l_indexable(texture2d)(float,float,float,float) r0.w, r0.zzzz, t0.xyzw, s1, l(0.000000)
mul r0.z, r0.z, r0.z
dp2 r0.z, r0.zzzz, r0.zzzz
add r0.z, r0.z, l(-1.500000)
mul r0.w, r0.w, cb1[4].z
mul r0.xy, r0.wwww, r0.xyxx
mad r0.xy, cb0[0].xyxx, r0.zzzz, r0.xyxx
mov r1.y, l(0.500000)
sample_l_indexable(texture2d)(float,float,float,float) r0.z, r1.xyxx, t1.xywz, s0, l(3.000000)
lt r0.z, l(0.000000), r0.z
and r0.z, r0.z, l(0x3f800000)
mul r10.xy, r0.zzzz, r0.xyxx

mad r10.x, r25.x, l(1.0), r10.x
mov o0.xy, r10.xyxx

mov r11.xy, v1.xyxx
//mad r11.x, r25.x, l(0.5), r11.x

mov o0.zw, l(0,0,0,1.000000)
mov o1.xy, r11.xyxx
mov o2.xy, cb0[0].xyxx
mov o3.y, cb0[1].x
ret
// Approximately 0 instruction slots used
