Esempio n. 1
0
        /// <summary>
        /// Global Main Panel
        /// </summary>
        /// <param name="helpEnabled"></param>
        private void GlobalSettings(bool helpEnabled)
        {
            m_editorUtils.Heading("Setup");
            EditorGUI.indentLevel++;
            WaterReflections.SunLight     = (Light)m_editorUtils.ObjectField("SunLight", WaterReflections.SunLight, typeof(Light), true, helpEnabled);
            WaterReflections.m_player     = (Transform)m_editorUtils.ObjectField("Player", WaterReflections.m_player, typeof(Transform), true, helpEnabled);
            WaterReflections.SeaLevel     = m_editorUtils.FloatField("SeaLevel", WaterReflections.SeaLevel, helpEnabled);
            WaterReflections.InfiniteMode = m_editorUtils.Toggle("InfiniteMode", WaterReflections.InfiniteMode, helpEnabled);
            EditorGUI.indentLevel--;

            /*m_editorUtils.Heading("SurfaceSettings");
             * EditorGUI.indentLevel++;
             * WaterReflections.m_minSurfaceLight = m_editorUtils.FloatField("MinSurfaceLight", WaterReflections.m_minSurfaceLight, helpEnabled);
             * if (WaterReflections.m_minSurfaceLight > WaterReflections.m_maxSurfaceLight)
             * {
             *  WaterReflections.m_minSurfaceLight = WaterReflections.m_maxSurfaceLight - 0.1f;
             * }
             *
             * if (WaterReflections.m_minSurfaceLight < 0f)
             * {
             *  WaterReflections.m_minSurfaceLight = 0f;
             * }
             * WaterReflections.m_maxSurfaceLight = m_editorUtils.FloatField("MaxSurfaceLight", WaterReflections.m_maxSurfaceLight, helpEnabled);
             * if (WaterReflections.m_maxSurfaceLight < 0.1f)
             * {
             *  WaterReflections.m_maxSurfaceLight = 0.1f;
             * }
             * EditorGUI.indentLevel--;*/

            if (m_editorUtils.Button("EditReflectionSettings"))
            {
                GaiaUtils.FocusWaterProfile();
            }
        }
Esempio n. 2
0
 public static void GX_WaterSetup_SetupWaterProfiles()
 {
     if (EditorUtility.DisplayDialog("Opening Water Profile", "This will open the water profile settings. In there you will be able to adjust water settings for Gaia, and you can also edit the default water shader parameters for the different water types.", "OK", "Cancel"))
     {
         GaiaUtils.FocusWaterProfile();
     }
 }