| | 1 | | using System.Collections; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using UnityEditor; |
| | 4 | | using UnityEngine; |
| | 5 | |
|
| | 6 | | namespace DCL.Skybox |
| | 7 | | { |
| | 8 | | public static class RenderCubemapLayer |
| | 9 | | { |
| | 10 | |
|
| | 11 | | public static void RenderLayer(ref float timeOfTheDay, EditorToolMeasurements toolSize, TextureLayer layer) |
| | 12 | | { |
| | 13 | | // Cubemap |
| 0 | 14 | | RenderSimpleValues.RenderCubemapTexture(SkyboxEditorLiterals.LayerProperties.cubemap, ref layer.cubemap); |
| | 15 | |
|
| | 16 | | // Gradient |
| 0 | 17 | | RenderSimpleValues.RenderColorGradientField(layer.color, SkyboxEditorLiterals.LayerProperties.color, layer.t |
| | 18 | |
|
| 0 | 19 | | EditorGUILayout.Separator(); |
| | 20 | |
|
| | 21 | | // Movement Type |
| 0 | 22 | | EditorGUILayout.BeginHorizontal(GUILayout.ExpandWidth(false)); |
| 0 | 23 | | EditorGUILayout.LabelField(SkyboxEditorLiterals.LayerProperties.movementType, GUILayout.Width(150), GUILayou |
| 0 | 24 | | layer.movementTypeCubemap = (MovementType)EditorGUILayout.EnumPopup(layer.movementTypeCubemap, GUILayout.Wid |
| 0 | 25 | | EditorGUILayout.EndHorizontal(); |
| | 26 | |
|
| 0 | 27 | | EditorGUILayout.Separator(); |
| | 28 | |
|
| | 29 | | // Rotation |
| 0 | 30 | | if (layer.movementTypeCubemap == MovementType.PointBased) |
| | 31 | | { |
| 0 | 32 | | RenderTransitioningVariables.RenderTransitioningVector3(ref timeOfTheDay, layer.rotations_Vector3, Skybo |
| | 33 | |
|
| 0 | 34 | | } |
| | 35 | | else |
| | 36 | | { |
| 0 | 37 | | RenderSimpleValues.RenderVector3Field(SkyboxEditorLiterals.LayerProperties.speed, ref layer.speed_Vector |
| | 38 | | } |
| 0 | 39 | | } |
| | 40 | | } |
| | 41 | | } |