1
0
mirror of synced 2024-11-24 06:40:11 +01:00

fix skybox issue

This commit is contained in:
xpeng 2022-11-05 22:05:12 +01:00
parent 0024144244
commit b2c2a8311e
4 changed files with 17 additions and 16 deletions

View File

@ -120,7 +120,7 @@ Material:
- _Fresnel: 1.24 - _Fresnel: 1.24
- _Fresnel_1: 5 - _Fresnel_1: 5
- _Fresnel_Power: 1 - _Fresnel_Power: 1
- _Fresnel_Radius: 0.7 - _Fresnel_Radius: 0.5
- _Fresnel_Size: -5 - _Fresnel_Size: -5
- _Fresnel_Strength: 1 - _Fresnel_Strength: 1
- _GlossMapScale: 0 - _GlossMapScale: 0

View File

@ -102,7 +102,7 @@ Material:
- _DetailAlbedoMapScale: 1 - _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1 - _DetailNormalMapScale: 1
- _DstBlend: 0 - _DstBlend: 0
- _EmissionStrength: 1.25 - _EmissionStrength: 1.35
- _EnvironmentReflections: 1 - _EnvironmentReflections: 1
- _GlossMapScale: 1 - _GlossMapScale: 1
- _Glossiness: 0 - _Glossiness: 0
@ -127,7 +127,7 @@ Material:
- _SrcBlend: 1 - _SrcBlend: 1
- _Surface: 0 - _Surface: 0
- _UVSec: 0 - _UVSec: 0
- _Vignett: 0.5 - _Vignett: 0.8
- _VignettHardness: -0.15 - _VignettHardness: -0.15
- _WorkflowMode: 1 - _WorkflowMode: 1
- _ZWrite: 1 - _ZWrite: 1

View File

@ -785,7 +785,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 12 m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &90706075 stripped --- !u!1 &90706075 stripped
GameObject: GameObject:
@ -4399,7 +4399,7 @@ RectTransform:
m_Children: m_Children:
- {fileID: 798779702} - {fileID: 798779702}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 5 m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5}
@ -6518,7 +6518,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 11 m_RootOrder: 12
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &733961431 --- !u!114 &733961431
MonoBehaviour: MonoBehaviour:
@ -7836,7 +7836,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 8 m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &881068515 stripped --- !u!1 &881068515 stripped
GameObject: GameObject:
@ -7899,7 +7899,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 9 m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &910165458 --- !u!114 &910165458
MonoBehaviour: MonoBehaviour:
@ -10411,7 +10411,7 @@ PrefabInstance:
- target: {fileID: -8679921383154817045, guid: 31f0c3f4ace06884a8eb57730c1e9c57, - target: {fileID: -8679921383154817045, guid: 31f0c3f4ace06884a8eb57730c1e9c57,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 7 value: 8
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 31f0c3f4ace06884a8eb57730c1e9c57, - target: {fileID: -8679921383154817045, guid: 31f0c3f4ace06884a8eb57730c1e9c57,
type: 3} type: 3}
@ -12944,7 +12944,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 10 m_RootOrder: 11
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0} m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0}
--- !u!65 &1253702878 --- !u!65 &1253702878
BoxCollider: BoxCollider:
@ -15718,7 +15718,7 @@ RectTransform:
- {fileID: 946114102} - {fileID: 946114102}
- {fileID: 411658916} - {fileID: 411658916}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 4 m_RootOrder: 5
m_LocalEulerAnglesHint: {x: -40, y: 0, z: 0} m_LocalEulerAnglesHint: {x: -40, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0}
@ -17413,7 +17413,7 @@ Transform:
- {fileID: 182119967} - {fileID: 182119967}
- {fileID: 1740661842} - {fileID: 1740661842}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 3 m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 23, y: 35, z: 0} m_LocalEulerAnglesHint: {x: 23, y: 35, z: 0}
--- !u!65 &1688695919 --- !u!65 &1688695919
BoxCollider: BoxCollider:
@ -18806,7 +18806,7 @@ PrefabInstance:
- target: {fileID: -8679921383154817045, guid: cf8684b3c4f47b94aa7cb23ce498caf3, - target: {fileID: -8679921383154817045, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3} type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 6 value: 7
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: cf8684b3c4f47b94aa7cb23ce498caf3, - target: {fileID: -8679921383154817045, guid: cf8684b3c4f47b94aa7cb23ce498caf3,
type: 3} type: 3}
@ -41162,7 +41162,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0} m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1 m_sendNavigationEvents: 0
m_DragThreshold: 10 m_DragThreshold: 10
--- !u!4 &2020276166 --- !u!4 &2020276166
Transform: Transform:
@ -41177,7 +41177,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 13 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &2020549004 stripped --- !u!4 &2020549004 stripped
Transform: Transform:

View File

@ -39,10 +39,11 @@ public class SkyboxSwitcher : MonoBehaviour
else else
{ {
Room.SetActive(false); Room.SetActive(false);
currentSkyboxIndex = Dropdown.value-1; currentSkyboxIndex = Dropdown.value;
SetSkybox(); SetSkybox();
} }
}); });
Dropdown.onValueChanged?.Invoke(Dropdown.value);
} }
IEnumerator AddSkyboxes() IEnumerator AddSkyboxes()