Updated namespace;
Added UTSPass; Chnaged the RTHanlde _HairShadowMap to not reallocate when screen resolution decreased;
This commit is contained in:
@@ -3,14 +3,14 @@ using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Unity.Toonshader.Editor
|
||||
namespace Misaki.HdrpToon.Editor
|
||||
{
|
||||
public class UTSRendererSettingProvider : SettingsProvider
|
||||
{
|
||||
class Styles
|
||||
{
|
||||
public static GUIContent outline = new GUIContent("Outline Setting");
|
||||
public static GUIContent hairShadow = new GUIContent("Hair Shadow Setting");
|
||||
public static GUIContent outline = new("Outline Setting");
|
||||
public static GUIContent hairShadow = new("Hair Shadow Setting");
|
||||
}
|
||||
|
||||
private SerializedObject _customSettings;
|
||||
@@ -30,12 +30,13 @@ namespace Unity.Toonshader.Editor
|
||||
|
||||
EditorGUILayout.PropertyField(_customSettings.FindProperty("outlineSetting"), Styles.outline);
|
||||
EditorGUILayout.PropertyField(_customSettings.FindProperty("hairShadowSetting"), Styles.hairShadow);
|
||||
_customSettings.ApplyModifiedPropertiesWithoutUndo();
|
||||
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
RegisterUTSRenderPass.NotifyRendererSettingChanged();
|
||||
UTSRenderPassRegistrar.NotifyRendererSettingChanged();
|
||||
}
|
||||
|
||||
_customSettings.ApplyModifiedPropertiesWithoutUndo();
|
||||
}
|
||||
|
||||
public static bool IsSettingsAvailable()
|
||||
|
||||
Reference in New Issue
Block a user