Added HairBlending shader pass;

Added HairBlendingSetting in UTSRenderPassSetting;
Added MaterialType to UTS;
Added MaterialFeature scope to UTS material editor;

Merged HairBlendingPass and HairShadowPass into UTSPass;

Fixed the bug that character box light can not update rotation correctly according to bound light source;
This commit is contained in:
Misaki
2025-01-09 07:58:06 +09:00
parent 9290223624
commit d47641e5e2
18 changed files with 627 additions and 368 deletions

View File

@@ -9,8 +9,9 @@ namespace Misaki.HdrpToon.Editor
{
class Styles
{
public static GUIContent outline = new("Outline Setting");
public static GUIContent hairShadow = new("Hair Shadow Setting");
public static GUIContent hairShadow = new("Hair Shadow");
public static GUIContent hairBlending = new("Hair Blending");
public static GUIContent outline = new("Outline");
}
private SerializedObject _customSettings;
@@ -28,15 +29,16 @@ namespace Misaki.HdrpToon.Editor
{
EditorGUI.BeginChangeCheck();
EditorGUILayout.PropertyField(_customSettings.FindProperty("outlineSetting"), Styles.outline);
EditorGUILayout.PropertyField(_customSettings.FindProperty("hairShadowSetting"), Styles.hairShadow);
EditorGUILayout.PropertyField(_customSettings.FindProperty("hairBlendingSetting"), Styles.hairBlending);
EditorGUILayout.PropertyField(_customSettings.FindProperty("outlineSetting"), Styles.outline);
_customSettings.ApplyModifiedPropertiesWithoutUndo();
if (EditorGUI.EndChangeCheck())
{
UTSRenderPassRegistrar.NotifyRendererSettingChanged();
}
_customSettings.ApplyModifiedPropertiesWithoutUndo();
}
public static bool IsSettingsAvailable()