| | 1 | | using System.Collections; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using UnityEditor; |
| | 4 | | using UnityEngine; |
| | 5 | |
|
| | 6 | | namespace DCL.Skybox |
| | 7 | | { |
| | 8 | | public class RenderAvatarLayer |
| | 9 | | { |
| | 10 | | public static void RenderLayer(ref float timeOfTheDay, EditorToolMeasurements toolSize, SkyboxConfiguration sele |
| | 11 | | { |
| 0 | 12 | | EditorGUILayout.LabelField(SkyboxEditorLiterals.Labels.inWorld, EditorStyles.boldLabel); |
| 0 | 13 | | EditorGUI.indentLevel++; |
| | 14 | | // Avatar Color |
| 0 | 15 | | selectedConfiguration.useAvatarGradient = EditorGUILayout.Toggle(SkyboxEditorLiterals.Labels.colorGradient, |
| | 16 | |
|
| 0 | 17 | | if (selectedConfiguration.useAvatarGradient) |
| | 18 | | { |
| 0 | 19 | | RenderSimpleValues.RenderColorGradientField(selectedConfiguration.avatarTintGradient, SkyboxEditorLitera |
| 0 | 20 | | } |
| | 21 | | else |
| | 22 | | { |
| 0 | 23 | | selectedConfiguration.avatarTintColor = EditorGUILayout.ColorField(SkyboxEditorLiterals.LayerProperties. |
| 0 | 24 | | EditorGUILayout.Separator(); |
| | 25 | | } |
| | 26 | |
|
| | 27 | | // Avatar Light Direction |
| 0 | 28 | | selectedConfiguration.useAvatarRealtimeDLDirection = EditorGUILayout.Toggle(SkyboxEditorLiterals.LayerProper |
| | 29 | |
|
| 0 | 30 | | if (!selectedConfiguration.useAvatarRealtimeDLDirection) |
| | 31 | | { |
| 0 | 32 | | RenderSimpleValues.RenderVector3Field(SkyboxEditorLiterals.LayerProperties.lightDirection, ref selectedC |
| | 33 | | } |
| | 34 | |
|
| 0 | 35 | | EditorGUILayout.Separator(); |
| | 36 | |
|
| | 37 | | // Avatar Light Color |
| 0 | 38 | | selectedConfiguration.useAvatarRealtimeLightColor = EditorGUILayout.Toggle(SkyboxEditorLiterals.Labels.realt |
| | 39 | |
|
| 0 | 40 | | if (!selectedConfiguration.useAvatarRealtimeLightColor) |
| | 41 | | { |
| 0 | 42 | | RenderSimpleValues.RenderColorGradientField(selectedConfiguration.avatarLightColorGradient, SkyboxEditor |
| 0 | 43 | | EditorGUILayout.Separator(); |
| | 44 | | } |
| 0 | 45 | | EditorGUI.indentLevel--; |
| | 46 | |
|
| 0 | 47 | | EditorGUILayout.LabelField(SkyboxEditorLiterals.Labels.inEditorBackpack, EditorStyles.boldLabel); |
| 0 | 48 | | EditorGUI.indentLevel++; |
| 0 | 49 | | selectedConfiguration.avatarEditorTintColor = EditorGUILayout.ColorField(SkyboxEditorLiterals.LayerPropertie |
| 0 | 50 | | RenderSimpleValues.RenderVector3Field(SkyboxEditorLiterals.LayerProperties.lightDirection, ref selectedConfi |
| 0 | 51 | | selectedConfiguration.avatarEditorLightColor = EditorGUILayout.ColorField(SkyboxEditorLiterals.LayerProperti |
| 0 | 52 | | EditorGUILayout.Separator(); |
| 0 | 53 | | EditorGUI.indentLevel--; |
| 0 | 54 | | } |
| | 55 | | } |
| | 56 | | } |