void DrawCubicColorProps() { _showCubicColorProps = _util.Foldout(_showCubicColorProps, "Cubic Color"); if (!_showCubicColorProps) { return; } DrawCubicColorSwapButtons(); DrawCubicColorBlock( ref _showBlock_T, "Top", "T", ref _customProperties.topColor1, ref _customProperties.topColor2 ); DrawCubicColorBlock( ref _showBlock_R, "Right", "R", ref _customProperties.rightColor1, ref _customProperties.rightColor2 ); DrawCubicColorBlock( ref _showBlock_F, "Front", "F", ref _customProperties.frontColor1, ref _customProperties.frontColor2 ); DrawCubicColorBlock( ref _showBlock_L, "Left", "L", ref _customProperties.leftColor1, ref _customProperties.leftColor2 ); DrawCubicColorBlock( ref _showBlock_B, "Back", "B", ref _customProperties.backColor1, ref _customProperties.backColor2 ); DrawCubicColorBlock( ref _showBlock_D, "Bottom", "D", ref _customProperties.bottomColor1, ref _customProperties.bottomColor2 ); EditorGUILayout.Space(); _util.DrawToggle("Mix Cubic Color", "mixCubicColorOn"); _util.DrawToggle("Multiply Cubic & Diffuse", "multiplyCubicDiffuseOn"); _util.DrawSlider("Cubic Color Power", "cubicColorPower", -1f, 1f); _util.DrawSlider("World Space Normal", "worldSpaceNormal", 0f, 1f); _util.DrawSlider("World Space Gradient", "worldSpaceGradient", 0f, 1f); }
void DrawShadingProps() { _showShadingProps = _util.Foldout(_showShadingProps, "Basic Shading"); if (!_showShadingProps) { return; } _util.DrawSlider("Shade Contrast", "shadeContrast", -2f, 8f); bool toonShadingOn = _util.DrawToggle("Toon Shading", "toonShadingOn"); EditorGUI.BeginDisabledGroup(!toonShadingOn); { _util.DrawSlider("Toon Shade Step 1", "toonShadeStep1", 0f, 1f); _util.DrawSlider("Toon Shade Step 2", "toonShadeStep2", 0f, 1f); _util.DrawSlider("Toon Shade Smoothness", "toonShadeSmoothness", 0f, 0.3f); } EditorGUI.EndDisabledGroup(); }
void DrawDitherProps() { _showDitherProps = _util.Foldout(_showDitherProps, "Dithering"); if (!_showDitherProps) { return; } materialEditor.TextureProperty(_customProperties.ditherPattern, "Dithering Pattern"); materialEditor.TextureProperty(_customProperties.noisePattern, "Noise Pattern"); _util.DrawSlider("Dithering Alpha", "ditherAlpha", 0f, 1f); _util.DrawSlider("Minimum Alpha", "ditherMinAlpha", 0f, 1f); _util.DrawSlider("Camera Distance Hide", "ditherCameraDistanceTo", 0f, 20f); _util.DrawSlider("Camera Distance Start", "ditherCameraDistanceFrom", 0f, 20f); _util.DrawSlider("Dithering Cull", "ditherCull", 0f, 20f); _util.DrawSlider("Dither Y From", "heightDitherYFrom", -100f, 100f); _util.DrawSlider("Dither Height", "heightDitherHeight", 0f, 100f); }
void DrawDitherProps() { _showDitherProps = _util.Foldout(_showDitherProps, "Dithering"); if (!_showDitherProps) { return; } materialEditor.TextureProperty(_customProperties.ditherPattern, "Dithering Pattern"); _util.DrawSlider("Dithering Cull", "ditherCull", 0f, 20f); }