Skip to content

Commit

Permalink
fix: fix the shadow mode inspector in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Jan 23, 2025
1 parent bc1578b commit da53585
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Packages/src/Editor/UIEffectEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ public void DrawProperties()
EditorGUILayout.Slider(_shadowDistanceX, 0, 1, "Reflection");
EditorGUILayout.PropertyField(_shadowDistanceY, EditorGUIUtility.TrTempContent("Offset"));
EditorGUILayout.PropertyField(_shadowMirrorScale);
EditorGUILayout.PropertyField(_shadowFade);
}
else
{
Expand All @@ -267,13 +268,14 @@ public void DrawProperties()

EditorGUILayout.PropertyField(_shadowDistance);
EditorGUILayout.PropertyField(_shadowIteration);
prevColorFilter = (ColorFilter)_shadowColorFilter.intValue;
EditorGUILayout.PropertyField(_shadowColorFilter);
DrawColor(_shadowColorFilter, _shadowColor, prevColorFilter, false);
EditorGUILayout.PropertyField(_shadowColorGlow);
EditorGUILayout.PropertyField(_shadowFade);
}

EditorGUILayout.PropertyField(_shadowColorFilter);
DrawColorPickerField(_shadowColor, false);
EditorGUILayout.PropertyField(_shadowColorGlow);
EditorGUILayout.PropertyField(_shadowFade);

// Shadow blur intensity
switch ((SamplingFilter)_samplingFilter.intValue)
{
case SamplingFilter.BlurFast:
Expand Down

0 comments on commit da53585

Please sign in to comment.