Files
Hasebe/Assets/MK/MKToon/Editor/URP/Particles/ParticlesSimpleEditor.cs
T
2026-10-09 17:25:14 +03:00

60 lines
2.3 KiB
C#
Executable File

//////////////////////////////////////////////////////
// MK Toon Particles 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 sealed class ParticlesSimpleEditor : MK.Toon.Editor.SimpleEditorBase
{
public ParticlesSimpleEditor() : base(RenderPipeline.Universal) {}
/////////////////////////////////////////////////////////////////////////////////////////////
// Properties //
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////
// Particles //
/////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
// Draw //
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////
// Options //
/////////////////
protected override void DrawEmissionFlags(MaterialEditor materialEditor)
{
}
protected override void EmissionRealtimeSetup(Material material)
{
if(Properties.emissionColor.GetValue(material).maxColorComponent <= 0)
material.globalIlluminationFlags |= MaterialGlobalIlluminationFlags.EmissiveIsBlack;
}
/////////////////
// Advanced //
/////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
// Variants Setup //
/////////////////////////////////////////////////////////////////////////////////////////////
}
}
#endif