[Add] All in one shader
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using UnityEditor;
|
||||
|
||||
namespace AllIn13DShader
|
||||
{
|
||||
public class OutlineEffectDrawer : AbstractEffectDrawer
|
||||
{
|
||||
private MaterialProperty stencilRefMatProperty;
|
||||
|
||||
public OutlineEffectDrawer(AllIn13DShaderInspectorReferences references,
|
||||
PropertiesConfig propertiesConfig) : base(references, propertiesConfig)
|
||||
{
|
||||
this.drawerID = Constants.OUTLINE_DRAWER_ID;
|
||||
|
||||
stencilRefMatProperty = FindPropertyByName("_StencilRef");
|
||||
}
|
||||
|
||||
protected override void DrawProperties()
|
||||
{
|
||||
base.DrawProperties();
|
||||
|
||||
if (stencilRefMatProperty != null)
|
||||
{
|
||||
EffectPropertyDrawer.DrawProperty(
|
||||
materialProperty: stencilRefMatProperty,
|
||||
labelPrefix: string.Empty,
|
||||
displayName: stencilRefMatProperty.displayName,
|
||||
customValue: string.Empty,
|
||||
allowReset: true,
|
||||
isKeywordProperty: false,
|
||||
propertyType: EffectProperty.PropertyType.BASIC,
|
||||
references: references);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user