avatar/Assets/VRCSDK/Sample Assets/Editor/RealtimeEmissiveGammaGUI.cs
2022-09-27 20:47:45 -07:00

15 lines
400 B
C#

using UnityEngine;
using UnityEditor;
public class RealtimeEmissiveGammaGUI : ShaderGUI
{
public override void OnGUI (MaterialEditor materialEditor, MaterialProperty[] properties)
{
base.OnGUI (materialEditor, properties);
Material mtl = materialEditor.target as Material;
mtl.globalIlluminationFlags = MaterialGlobalIlluminationFlags.RealtimeEmissive;
}
}