Skip to content

Commit 4de9b07

Browse files
Update HDLightUI.cs (#3203)
1 parent 44ba81f commit 4de9b07

File tree

1 file changed

+4
-4
lines changed
  • com.unity.render-pipelines.high-definition/Editor/Lighting

1 file changed

+4
-4
lines changed

com.unity.render-pipelines.high-definition/Editor/Lighting/HDLightUI.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static IntScalableSetting ShadowResolution(HDLightType lightType, HDRende
2828

2929
enum ShadowmaskMode
3030
{
31-
ShadowMask,
31+
Shadowmask,
3232
DistanceShadowmask
3333
}
3434

@@ -1086,14 +1086,14 @@ static void DrawShadowMapContent(SerializedHDLight serialized, Editor owner)
10861086
EditorGUI.BeginProperty(nonLightmappedOnlyRect, s_Styles.nonLightmappedOnly, serialized.nonLightmappedOnly);
10871087
{
10881088
EditorGUI.BeginChangeCheck();
1089-
ShadowmaskMode shadowmask = serialized.nonLightmappedOnly.boolValue ? ShadowmaskMode.ShadowMask : ShadowmaskMode.DistanceShadowmask;
1089+
ShadowmaskMode shadowmask = serialized.nonLightmappedOnly.boolValue ? ShadowmaskMode.Shadowmask : ShadowmaskMode.DistanceShadowmask;
10901090
shadowmask = (ShadowmaskMode)EditorGUI.EnumPopup(nonLightmappedOnlyRect, s_Styles.nonLightmappedOnly, shadowmask);
10911091
if (EditorGUI.EndChangeCheck())
10921092
{
10931093
Undo.RecordObjects(owner.targets, "Light Update Shadowmask Mode");
1094-
serialized.nonLightmappedOnly.boolValue = shadowmask == ShadowmaskMode.ShadowMask;
1094+
serialized.nonLightmappedOnly.boolValue = shadowmask == ShadowmaskMode.Shadowmask;
10951095
foreach (Light target in owner.targets)
1096-
target.lightShadowCasterMode = shadowmask == ShadowmaskMode.ShadowMask ? LightShadowCasterMode.NonLightmappedOnly : LightShadowCasterMode.Everything;
1096+
target.lightShadowCasterMode = shadowmask == ShadowmaskMode.Shadowmask ? LightShadowCasterMode.NonLightmappedOnly : LightShadowCasterMode.Everything;
10971097
}
10981098
}
10991099
EditorGUI.EndProperty();

0 commit comments

Comments
 (0)