46 lines
1.4 KiB
C#
Executable File
46 lines
1.4 KiB
C#
Executable File
//////////////////////////////////////////////////////
|
|
// MK Toon URP Standard Simple Editor //
|
|
// //
|
|
// Created by Michael Kremmel //
|
|
// www.michaelkremmel.de //
|
|
// Copyright © 2020 All rights reserved. //
|
|
//////////////////////////////////////////////////////
|
|
|
|
#if UNITY_EDITOR
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
using System.Linq;
|
|
using System;
|
|
using UnityEditor.Utils;
|
|
using UnityEditorInternal;
|
|
using EditorHelper = MK.Toon.Editor.EditorHelper;
|
|
|
|
namespace MK.Toon.Editor.URP
|
|
{
|
|
internal class StandardSimpleEditor : MK.Toon.Editor.SimpleEditorBase
|
|
{
|
|
public StandardSimpleEditor() : base(RenderPipeline.Universal) {}
|
|
|
|
protected override void DrawEmissionFlags(MaterialEditor materialEditor)
|
|
{
|
|
|
|
}
|
|
|
|
protected override void EmissionRealtimeSetup(Material material)
|
|
{
|
|
if(Properties.emissionColor.GetValue(material).maxColorComponent <= 0)
|
|
material.globalIlluminationFlags |= MaterialGlobalIlluminationFlags.EmissiveIsBlack;
|
|
}
|
|
|
|
protected override void DrawPipeline(MaterialEditor materialEditor)
|
|
{
|
|
DrawPipelineHeader();
|
|
|
|
materialEditor.EnableInstancingField();
|
|
DrawRenderPriority(materialEditor);
|
|
DrawAddPrecomputedVelocity(materialEditor);
|
|
}
|
|
}
|
|
}
|
|
#endif |