Changed the outline layer and hair shadow caster layer from LayerMask to RenderingLayerMask;

This commit is contained in:
Misaki
2024-11-18 01:06:42 +09:00
parent 1f63c6f4cb
commit ae9b32162d
24 changed files with 345 additions and 188 deletions

View File

@@ -0,0 +1,35 @@
using Unity.Rendering.HighDefinition.Toon;
using UnityEditor;
using UnityEngine;
using UnityEngine.UIElements;
namespace Unity.Toonshader.Editor
{
[CustomEditor(typeof(BoxLightAdjustment))]
public class BoxLightAdjustmentView : UnityEditor.Editor
{
[SerializeField]
private VisualTreeAsset _visualTreeAsset;
public override VisualElement CreateInspectorGUI()
{
if (_visualTreeAsset == null)
{
return base.CreateInspectorGUI();
}
var boxLightAdjustment = (BoxLightAdjustment)target;
var root = new VisualElement
{
dataSource = target
};
var visualTreeElement = _visualTreeAsset.Instantiate();
root.Add(visualTreeElement);
return root;
}
}
}