//Sun lens flares VS. Smoke haloing. 0.30 update.
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.181 on Wed Sep 20 19:01:09 2023
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   float4 projParams;                 // Index:    0.xyzw           Components:     4 [unused]
//   float4 inLightPos[3];              // Index:    1 2 3            Components:    12 [unused]
//   float4 inLightInvRadiusSq;         // Index:    4.xyzw           Components:     4 [unused]
//   float4 inLightColor[4];            // Index:    5 6 7 8          Components:    16 [unused]
//   float4 inLightSpotDir[3];          // Index:    9 10 11          Components:    12 [unused]
//   float4 inLightSpotAngle;           // Index:   12.xyzw           Components:     4 [unused]
//   float4 inLightSpotFalloff;         // Index:   13.xyzw           Components:     4 [unused]
//   float4 ambient;                    // Index:   14.xyzw           Components:     4 [unused]
//   float roughness;                   // Index:   15.x              Components:     1 [unused]
//   float4 specularColor;              // Index:   16.xyzw           Components:     4 [unused]
//   float backLighting;                // Index:   17.x              Components:     1 [unused]
//   float oneOverSoftness;             // Index:   17.y              Components:     1 [unused]
//   float oneOverFar;                  // Index:   17.z              Components:     1 [unused]
//   float4 prePassTargetParams;        // Index:   18.xyzw           Components:     4 [unused]
//   float4x4 modelViewProj;            // Index:   19 20 21 22       Components:    16
//   float4x4 fsModelViewProj;          // Index:   23 24 25 26       Components:    16
//   float3 eyePosWorld;                // Index:   27.xyz            Components:     3 [unused]
//   float useLighting;                 // Index:   27.w              Components:     1 [unused]
//   float alphaFactor;                 // Index:   28.x              Components:     1 [unused]
//   float alphaScale;                  // Index:   28.y              Components:     1 [unused]
//
// }
//
//
// 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
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xy          2     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xy          2     NONE   float   xy
// TEXCOORD                 2   xyzw        3     NONE   float   xyzw
// TEXCOORD                 3   xyz         4     NONE   float   xyz
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[27], immediateIndexed
dcl_input v0.xyz
dcl_input v1.xyzw
dcl_input v2.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xy
dcl_output o3.xyzw
dcl_output o4.xyz
dcl_temps 31
dcl_resource_texture2d (float,float,float,float) t125
ld_indexable(texture2d)(float,float,float,float) r25.xyzw, l(0, 0, 0, 0), t125.xyzw
mul r0.xyzw, v0.yyyy, cb0[20].xyzw
mad r0.xyzw, cb0[19].xyzw, v0.xxxx, r0.xyzw
mad r0.xyzw, cb0[21].xyzw, v0.zzzz, r0.xyzw
add r10.xyzw, r0.xyzw, cb0[22].xyzw

eq r20.x, r10.w, l(1.0)
if_nz r20.x
//add r10.x, r25.x, r10.x
mov r10.xyzw, l(0.0)
endif

mov o0.xyzw, r10.xyzw
mov o1.xyzw, v1.xyzw
mov o2.xy, v2.xyxx
mul r0.xyzw, v0.yyyy, cb0[24].xyzw
mad r0.xyzw, cb0[23].xyzw, v0.xxxx, r0.xyzw
mad r0.xyzw, cb0[25].xyzw, v0.zzzz, r0.xyzw
add r13.xyzw, r0.xyzw, cb0[26].xyzw

add r26.x, r13.w, -r25.y
mad r13.x, r25.x, r26.x, r13.x

mov o3.xyzw, r13.xyzw
mov o4.xyz, v0.xyzx
ret
// Approximately 12 instruction slots used
