Esempio n. 1
0
        public static void Draw(LightingSettings.Profile profile)
        {
            bool foldout = GUIFoldoutHeader.Begin("Day Lighting", profile.dayLightingSettings);

            if (foldout == false)
            {
                GUIFoldoutHeader.End();
                return;
            }

            EditorGUI.indentLevel++;

            EditorGUILayout.Space();

            profile.dayLightingSettings.alpha = EditorGUILayout.Slider("Alpha", profile.dayLightingSettings.alpha, 0, 1);

            profile.dayLightingSettings.direction = EditorGUILayout.Slider("Direction", profile.dayLightingSettings.direction, 0, 360);

            profile.dayLightingSettings.height = EditorGUILayout.Slider("Height", profile.dayLightingSettings.height, 0.1f, 10);

            SunPenumbra.Draw(profile);

            NormalMap.Draw(profile);

            EditorGUI.indentLevel--;

            GUIFoldoutHeader.End();
        }