AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
FastConfigurable2SidedGUI.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 using UnityEditor;
5 
6 namespace HoloToolkit.Unity
7 {
12  {
13  protected override void ShowOutputConfigurationGUI(MaterialEditor matEditor)
14  {
15  ShaderGUIUtils.BeginHeader("Output Configuration");
16  {
17  matEditor.ShaderProperty(zTest, Styles.zTest);
18  matEditor.ShaderProperty(zWrite, Styles.zWrite);
19  matEditor.ShaderProperty(colorWriteMask, Styles.colorWriteMask);
20  matEditor.RenderQueueField();
21  }
23  }
24 
25  protected override void CacheOutputConfigurationProperties(MaterialProperty[] props)
26  {
27  zTest = FindProperty("_ZTest", props);
28  zWrite = FindProperty("_ZWrite", props);
29  colorWriteMask = FindProperty("_ColorWriteMask", props);
30  }
31  }
32 }
override void ShowOutputConfigurationGUI(MaterialEditor matEditor)
Editor for FastConfigurable shader
static void BeginHeader(string headerText)
override void CacheOutputConfigurationProperties(MaterialProperty[] props)
Helper class for custom shader editors
Editor for FastConfigurable2Sided shader