From b2c2a8311e6f8471d23294fa6f38e51817005432 Mon Sep 17 00:00:00 2001 From: xpeng <1216772231@qq.com> Date: Sat, 5 Nov 2022 22:05:12 +0100 Subject: [PATCH] fix skybox issue --- Assets/Material/ButtonCover.mat | 2 +- Assets/Material/WacUnity/Light.mat | 4 ++-- Assets/Scenes/WACVR.unity | 24 +++++++++---------- Assets/Script/Configuration/SkyboxSwitcher.cs | 3 ++- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/Assets/Material/ButtonCover.mat b/Assets/Material/ButtonCover.mat index 5a1e842..1c4cc08 100644 --- a/Assets/Material/ButtonCover.mat +++ b/Assets/Material/ButtonCover.mat @@ -120,7 +120,7 @@ Material: - _Fresnel: 1.24 - _Fresnel_1: 5 - _Fresnel_Power: 1 - - _Fresnel_Radius: 0.7 + - _Fresnel_Radius: 0.5 - _Fresnel_Size: -5 - _Fresnel_Strength: 1 - _GlossMapScale: 0 diff --git a/Assets/Material/WacUnity/Light.mat b/Assets/Material/WacUnity/Light.mat index 9666352..34be36a 100644 --- a/Assets/Material/WacUnity/Light.mat +++ b/Assets/Material/WacUnity/Light.mat @@ -102,7 +102,7 @@ Material: - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 - _DstBlend: 0 - - _EmissionStrength: 1.25 + - _EmissionStrength: 1.35 - _EnvironmentReflections: 1 - _GlossMapScale: 1 - _Glossiness: 0 @@ -127,7 +127,7 @@ Material: - _SrcBlend: 1 - _Surface: 0 - _UVSec: 0 - - _Vignett: 0.5 + - _Vignett: 0.8 - _VignettHardness: -0.15 - _WorkflowMode: 1 - _ZWrite: 1 diff --git a/Assets/Scenes/WACVR.unity b/Assets/Scenes/WACVR.unity index 6dd99bf..046be8f 100644 --- a/Assets/Scenes/WACVR.unity +++ b/Assets/Scenes/WACVR.unity @@ -785,7 +785,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 12 + m_RootOrder: 13 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &90706075 stripped GameObject: @@ -4399,7 +4399,7 @@ RectTransform: m_Children: - {fileID: 798779702} m_Father: {fileID: 0} - m_RootOrder: 5 + m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -6518,7 +6518,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 11 + m_RootOrder: 12 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &733961431 MonoBehaviour: @@ -7836,7 +7836,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 8 + m_RootOrder: 9 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &881068515 stripped GameObject: @@ -7899,7 +7899,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 9 + m_RootOrder: 10 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &910165458 MonoBehaviour: @@ -10411,7 +10411,7 @@ PrefabInstance: - target: {fileID: -8679921383154817045, guid: 31f0c3f4ace06884a8eb57730c1e9c57, type: 3} propertyPath: m_RootOrder - value: 7 + value: 8 objectReference: {fileID: 0} - target: {fileID: -8679921383154817045, guid: 31f0c3f4ace06884a8eb57730c1e9c57, type: 3} @@ -12944,7 +12944,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 10 + m_RootOrder: 11 m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} --- !u!65 &1253702878 BoxCollider: @@ -15718,7 +15718,7 @@ RectTransform: - {fileID: 946114102} - {fileID: 411658916} m_Father: {fileID: 0} - m_RootOrder: 4 + m_RootOrder: 5 m_LocalEulerAnglesHint: {x: -40, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -17413,7 +17413,7 @@ Transform: - {fileID: 182119967} - {fileID: 1740661842} m_Father: {fileID: 0} - m_RootOrder: 3 + m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 23, y: 35, z: 0} --- !u!65 &1688695919 BoxCollider: @@ -18806,7 +18806,7 @@ PrefabInstance: - target: {fileID: -8679921383154817045, guid: cf8684b3c4f47b94aa7cb23ce498caf3, type: 3} propertyPath: m_RootOrder - value: 6 + value: 7 objectReference: {fileID: 0} - target: {fileID: -8679921383154817045, guid: cf8684b3c4f47b94aa7cb23ce498caf3, type: 3} @@ -41162,7 +41162,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_FirstSelected: {fileID: 0} - m_sendNavigationEvents: 1 + m_sendNavigationEvents: 0 m_DragThreshold: 10 --- !u!4 &2020276166 Transform: @@ -41177,7 +41177,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 13 + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &2020549004 stripped Transform: diff --git a/Assets/Script/Configuration/SkyboxSwitcher.cs b/Assets/Script/Configuration/SkyboxSwitcher.cs index e8b0670..56c6697 100644 --- a/Assets/Script/Configuration/SkyboxSwitcher.cs +++ b/Assets/Script/Configuration/SkyboxSwitcher.cs @@ -39,10 +39,11 @@ public class SkyboxSwitcher : MonoBehaviour else { Room.SetActive(false); - currentSkyboxIndex = Dropdown.value-1; + currentSkyboxIndex = Dropdown.value; SetSkybox(); } }); + Dropdown.onValueChanged?.Invoke(Dropdown.value); } IEnumerator AddSkyboxes()