Ejemplo n.º 1
0
        void DrawShadingProps()
        {
            _showShadingProps = _util.Foldout(_showShadingProps, "Basic Shading");
            if (!_showShadingProps)
            {
                return;
            }

            _util.DrawSlider("Shade Contrast", "shadeContrast", -2f, 8f);
            _util.DrawToggle("Specular Surface", "specularSurfaceOn");
            _util.DrawVector4("Specular Surface Params", "specularSurfaceParams");
        }
        void DrawSurfaceProps()
        {
            _showSurfaceProps = _util.Foldout(_showSurfaceProps, "Surface Wave");
            if (!_showSurfaceProps)
            {
                return;
            }

            _util.DrawSlider("Wave Cycle", "waveCycle", 0f, 4f);
            _util.DrawSlider("Wave Speed", "waveSpeed", 0f, 10f);
            _util.DrawSlider("Wave Power", "wavePower", 0f, 10f);
            _util.DrawSlider("Rise and Fall", "riseAndFall", 0f, 10f);
            _util.DrawSlider("Surface Specular", "surfaceSpecular", 0f, 10f);
            _util.DrawSlider("Surface Noise", "surfaceNoise", 0f, 10f);
            _util.DrawVector4("Surface Diversity Params", "surfaceParams");
        }