You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MiniGames/Assets/MudBun/Script/Editor/MudSplatSingleTexturedMater...

45 lines
1.4 KiB
C#

/******************************************************************************/
/*
Project - MudBun
Publisher - Long Bunny Labs
http://LongBunnyLabs.com
Author - Ming-Lun "Allen" Chou
http://AllenChou.net
*/
/******************************************************************************/
using UnityEditor;
namespace MudBun
{
public class MudSplatSingleTexturedMaterialEditor : ShaderGUI
{
public override void OnGUI(MaterialEditor editor, MaterialProperty[] aProp)
{
var _MainTex = FindProperty("_MainTex", aProp);
editor.ShaderProperty(_MainTex, _MainTex.displayName);
var _AlphaCutoutThreshold = FindProperty("_AlphaCutoutThreshold", aProp);
editor.ShaderProperty(_AlphaCutoutThreshold, _AlphaCutoutThreshold.displayName);
var _Dithering = FindProperty("_Dithering", aProp);
editor.ShaderProperty(_Dithering, _Dithering.displayName);
var _DitherTexture = FindProperty("_DitherTexture", aProp);
editor.ShaderProperty(_DitherTexture, _DitherTexture.displayName);
var _DitherTextureSize = FindProperty("_DitherTextureSize", aProp);
editor.ShaderProperty(_DitherTextureSize, _DitherTextureSize.displayName);
var _RandomDither = FindProperty("_RandomDither", aProp);
editor.ShaderProperty(_RandomDither, _RandomDither.displayName);
EditorGUILayout.Space();
editor.RenderQueueField();
editor.DoubleSidedGIField();
}
}
}