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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user