Skip to content

Commit 3a92ab6

Browse files
YvainRaeymaekersEvergreen
authored andcommitted
[UUM-128839] Fix point light shadow artifact when soft shadows are enabled
1 parent c6073c3 commit 3a92ab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/com.unity.render-pipelines.universal/Runtime/Passes/AdditionalLightsShadowCasterPass.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ bool SetupForEmptyRendering(bool stripShadowsOffVariants, bool shadowsEnabled, U
715715
bool lightHasSoftShadows = shadows != LightShadows.Soft;
716716
bool supportsSoftShadows = shadowData.supportsSoftShadows;
717717
float softShadows = ShadowUtils.SoftShadowQualityToShaderProperty(light, (supportsSoftShadows && lightHasSoftShadows));
718-
s_EmptyAdditionalLightIndexToShadowParams[lightIndexToUse] = new Vector4(light.shadowStrength, softShadows, lightType, lightIndexToUse);
718+
s_EmptyAdditionalLightIndexToShadowParams[lightIndexToUse] = new Vector4(light.shadowStrength, softShadows, lightType, c_DefaultShadowParams.w);
719719
}
720720
else
721721
{

0 commit comments

Comments
 (0)