Skip to content

Commit

Permalink
fix: particle lighting in menus
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlum committed Nov 23, 2024
1 parent 85c155e commit 7c899af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion package/Shaders/Effect.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,13 @@ float3 GetLightingColor(float3 msPosition, float3 worldPosition, float4 screenPo
color += dirLightColor * ShadowSampling::GetEffectShadow(worldPosition, normalize(worldPosition), screenPosition, eyeIndex);
}

# if !defined(LIGHT_LIMIT_FIX)
# if defined(LIGHT_LIMIT_FIX)
if (!(ExtraShaderDescriptor & ExtraFlags::InWorld)){
color.x += dot(PLightColorR * lightFadeMul, 1.0.xxxx);
color.y += dot(PLightColorG * lightFadeMul, 1.0.xxxx);
color.z += dot(PLightColorB * lightFadeMul, 1.0.xxxx);
}
# else
color.x += dot(PLightColorR * lightFadeMul, 1.0.xxxx);
color.y += dot(PLightColorG * lightFadeMul, 1.0.xxxx);
color.z += dot(PLightColorB * lightFadeMul, 1.0.xxxx);
Expand Down

0 comments on commit 7c899af

Please sign in to comment.