| | 1 | | using System.Collections; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using UnityEditor; |
| | 4 | | using UnityEngine; |
| | 5 | |
|
| | 6 | | namespace DCL.Skybox |
| | 7 | | { |
| | 8 | | public class RenderHorizonPlane |
| | 9 | | { |
| | 10 | | public static void RenderLayer(ref float timeOfTheDay, EditorToolMeasurements toolSize, SkyboxConfiguration conf |
| | 11 | | { |
| | 12 | | // Horizon Plane |
| 0 | 13 | | RenderSimpleValues.RenderTexture("Texture", ref config.horizonPlaneTexture); |
| | 14 | |
|
| | 15 | | // Horizon Plane values |
| 0 | 16 | | EditorGUILayout.LabelField("Horizon Plane Values", EditorStyles.boldLabel); |
| | 17 | |
|
| 0 | 18 | | EditorGUI.indentLevel++; |
| | 19 | | // Tiling |
| 0 | 20 | | RenderSimpleValues.RenderVector2Field("Tiling", ref config.horizonPlaneTiling); |
| | 21 | | // Offset |
| 0 | 22 | | RenderSimpleValues.RenderVector2Field("Offset", ref config.horizonPlaneOffset); |
| 0 | 23 | | EditorGUI.indentLevel--; |
| | 24 | |
|
| | 25 | | // Horizon Plane color |
| 0 | 26 | | RenderSimpleValues.RenderColorGradientField(config.horizonPlaneColor, "Horizon Plane Color", 0, 24); |
| | 27 | |
|
| | 28 | | // Horizon light intensity |
| 0 | 29 | | RenderSimpleValues.RenderFloatFieldAsSlider("Light Intensity", ref config.horizonLightIntensity, 0, 1); |
| | 30 | |
|
| | 31 | | // Horizon Height |
| 0 | 32 | | RenderTransitioningVariables.RenderTransitioningFloat(toolSize, ref timeOfTheDay, config.horizonPlaneHeight, |
| | 33 | |
|
| 0 | 34 | | EditorGUILayout.Space(10); |
| | 35 | |
|
| | 36 | | // Plane smooth range |
| 0 | 37 | | RenderSimpleValues.RenderMinMaxSlider("Plane Smoothness", ref config.horizonPlaneSmoothRange.x, ref config.h |
| 0 | 38 | | } |
| | 39 | | } |
| | 40 | | } |