private void DrawSurfaceValues(MaterialEditor editor) { NeoGUIHelper.PushTextColor(Color.white); NeoGUIHelper.PushBGColor(NeoGUIHelper.Colors.LightGrey); if (isComplexProfile) { Styles.bShowSurfaceValues = NeoGUIHelper.HeaderWithFoldout("3. SURFACE VALUES", Styles.bShowSurfaceValues); } else { Styles.bShowSurfaceValues = NeoGUIHelper.HeaderWithFoldout("2. SURFACE VALUES", Styles.bShowSurfaceValues); } NeoGUIHelper.PopTextColor(); NeoGUIHelper.PopBGColor(); if (!Styles.bShowSurfaceValues) { return; } NeoGUIHelper.PushIndent(); //if (!isComplexProfile) { EditorGUILayout.Space(); DrawAOValues(editor); EditorGUILayout.Space(); } if (isComplexProfile) { _EmissionColor.colorValue = editor.ColorProperty(_EmissionColor, "Emissive Color"); } else { DoRangeProperty("Smoothness", _Smoothness, editor); DoRangeProperty("Metallicness", _Metallic, editor); DoRangeProperty("Rim Brightness", _RimBrightness, editor); DoRangeProperty("Rim Center", _RimCenter, editor); DoRangeProperty("Rim Contrast", _RimContrast, editor); } DoEnumProperty <CullMode>("Cull Mode", _CullMode, editor); NeoGUIHelper.PopIndent(); }
// Draw UND GUI private void DrawUndercoat(MaterialEditor editor) { NeoGUIHelper.PushTextColor(Color.white); NeoGUIHelper.PushBGColor(NeoGUIHelper.Colors.LightGrey); Styles.bShowUND = NeoGUIHelper.HeaderWithFoldout("1. undercoat (und)", Styles.bShowUND); NeoGUIHelper.PopTextColor(); NeoGUIHelper.PopBGColor(); if (!Styles.bShowUND) { return; } int prevIndent = EditorGUI.indentLevel; EditorGUI.indentLevel = 0; NeoGUIHelper.PushIndent(); { EditorGUILayout.Space(); DrawColorUND("1.1 UND COLOR", editor); EditorGUILayout.Space(); DrawShapeUND("1.2 UND SHAPE", editor); if (isComplexProfile) { EditorGUILayout.Space(); DrawDensityUND("1.3 UND DENSITY", editor); } EditorGUILayout.Space(); DrawHeightUND("1.4 UND HEIGHT", editor); if (isComplexProfile) { EditorGUILayout.Space(); DrawLightingUND("1.5 UND LIGHTING", editor); } } NeoGUIHelper.PopIndent(); EditorGUI.indentLevel = prevIndent; }
// Draw OVR GUI private void DrawOvercoat(MaterialEditor editor) { NeoGUIHelper.PushTextColor(Color.white); NeoGUIHelper.PushBGColor(NeoGUIHelper.Colors.LightGrey); Styles.bShowOVR = NeoGUIHelper.MaterialHeaderWithToggle(_bOVR, editor, "2. overcoat (OVR)", Styles.bShowOVR); NeoGUIHelper.PopTextColor(); NeoGUIHelper.PopBGColor(); if (!Styles.bShowOVR) { return; } EditorGUI.BeginDisabledGroup(_bOVR.floatValue == 0.0f); int prevIndent = EditorGUI.indentLevel; EditorGUI.indentLevel = 0; NeoGUIHelper.PushIndent(); { EditorGUILayout.Space(); DrawColorOVR("2.1 OVR COLOR", editor); EditorGUILayout.Space(); DrawShapeOVR("2.2 OVR SHAPE", editor); EditorGUILayout.Space(); DrawDensityOVR("2.3 OVR DENSITY", editor); EditorGUILayout.Space(); DrawHeightOVR("2.4 OVR HEIGHT", editor); EditorGUILayout.Space(); DrawLightingOVR("2.5 OVR LIGHTING", editor); } NeoGUIHelper.PopIndent(); EditorGUI.indentLevel = prevIndent; EditorGUI.EndDisabledGroup(); }