Skip to content

Commit 2fa1f62

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.3] [UUM-128839] Fix point light shadow artifact when soft shadows are enabled
1 parent 12e21ca commit 2fa1f62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ bool SetupForEmptyRendering(bool stripShadowsOffVariants, bool shadowsEnabled, U
743743
bool lightHasSoftShadows = shadows != LightShadows.Soft;
744744
bool supportsSoftShadows = shadowData.supportsSoftShadows;
745745
float softShadows = ShadowUtils.SoftShadowQualityToShaderProperty(light, (supportsSoftShadows && lightHasSoftShadows));
746-
s_EmptyAdditionalLightIndexToShadowParams[lightIndexToUse] = new Vector4(light.shadowStrength, softShadows, lightType, lightIndexToUse);
746+
s_EmptyAdditionalLightIndexToShadowParams[lightIndexToUse] = new Vector4(light.shadowStrength, softShadows, lightType, c_DefaultShadowParams.w);
747747
}
748748
else
749749
{

0 commit comments

Comments
 (0)