| | 1 | | using System.Collections; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using UnityEditor; |
| | 4 | | using UnityEngine; |
| | 5 | |
|
| | 6 | | namespace DCL.Skybox |
| | 7 | | { |
| | 8 | | public class RenderBackgroundColorLayer |
| | 9 | | { |
| | 10 | | public static void RenderLayer(ref float timeOfTheDay, EditorToolMeasurements toolSize, SkyboxConfiguration conf |
| | 11 | | { |
| 0 | 12 | | RenderSimpleValues.RenderColorGradientField(config.skyColor, SkyboxEditorLiterals.skyColor, 0, 24); |
| 0 | 13 | | RenderSimpleValues.RenderColorGradientField(config.horizonColor, SkyboxEditorLiterals.horizonColor, 0, 24); |
| 0 | 14 | | RenderSimpleValues.RenderColorGradientField(config.groundColor, SkyboxEditorLiterals.groundColor, 0, 24); |
| 0 | 15 | | RenderHorizonLayer(ref timeOfTheDay, toolSize, config); |
| 0 | 16 | | } |
| | 17 | |
|
| | 18 | | static void RenderHorizonLayer(ref float timeOfTheDay, EditorToolMeasurements toolSize, SkyboxConfiguration sele |
| | 19 | | { |
| 0 | 20 | | EditorGUILayout.Separator(); |
| 0 | 21 | | RenderTransitioningVariables.RenderTransitioningFloat(toolSize, ref timeOfTheDay, selectedConfiguration.hori |
| | 22 | |
|
| 0 | 23 | | EditorGUILayout.Space(10); |
| 0 | 24 | | RenderTransitioningVariables.RenderTransitioningFloat(toolSize, ref timeOfTheDay, selectedConfiguration.hori |
| | 25 | |
|
| 0 | 26 | | EditorGUILayout.Separator(); |
| | 27 | |
|
| | 28 | | // Horizon Mask |
| 0 | 29 | | RenderSimpleValues.RenderTexture(SkyboxEditorLiterals.texture, ref selectedConfiguration.horizonMask); |
| | 30 | |
|
| | 31 | | // Horizon mask values |
| 0 | 32 | | RenderSimpleValues.RenderVector3Field(SkyboxEditorLiterals.horizonMaskValues, ref selectedConfiguration.hori |
| | 33 | |
|
| | 34 | | // Horizon Plane color |
| 0 | 35 | | RenderSimpleValues.RenderColorGradientField(selectedConfiguration.horizonPlaneColor, SkyboxEditorLiterals.ho |
| | 36 | |
|
| | 37 | | // Horizon Height |
| 0 | 38 | | RenderTransitioningVariables.RenderTransitioningFloat(toolSize, ref timeOfTheDay, selectedConfiguration.hori |
| 0 | 39 | | } |
| | 40 | | } |
| | 41 | | } |