diff --git a/package/Shaders/Effect.hlsl b/package/Shaders/Effect.hlsl index ba999712c..63cba901d 100644 --- a/package/Shaders/Effect.hlsl +++ b/package/Shaders/Effect.hlsl @@ -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);