Updated namespace;

Added UTSPass;
Chnaged the RTHanlde _HairShadowMap to not reallocate when screen resolution decreased;
This commit is contained in:
Misaki
2025-01-08 22:19:04 +09:00
parent 23862b4380
commit a7a9ad16b5
33 changed files with 457 additions and 599 deletions

View File

@@ -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()