File size: 1,006 Bytes
d883ffe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #if HAS_VFX_GRAPH
using UnityEditor.ShaderGraph;
using UnityEngine;
using UnityEngine.Rendering;
namespace UnityEditor.Rendering.Universal
{
internal class VFXShaderGraphLitGUI : ShaderGraphLitGUI
{
protected override uint materialFilter => uint.MaxValue & ~(uint)Expandable.SurfaceInputs;
}
internal class VFXShaderGraphUnlitGUI : ShaderGraphUnlitGUI
{
protected override uint materialFilter => uint.MaxValue & ~(uint)Expandable.SurfaceInputs;
}
internal class VFXSixWayGUI : SixWayGUI
{
protected override uint materialFilter => uint.MaxValue & ~(uint)Expandable.SurfaceInputs;
}
internal class VFXGenericShaderGraphMaterialGUI : GenericShaderGraphMaterialGUI
{
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props)
{
//When material used in VFX, all properties are converted to input slots.
//This fallback is used with sprite output.
}
}
}
#endif
|