From a8a6e01b18beb59a8359964e11aaf87e2fd3e86d Mon Sep 17 00:00:00 2001 From: Tim Date: Mon, 7 Jul 2025 21:55:11 +0200 Subject: [PATCH] Fix Window Port, Render 2sided --- vr-configurator/Assets/Resources/Material/Glas.mat | 4 ++-- vr-configurator/Assets/Scripts/Models/Definitions.cs | 1 + vr-configurator/Assets/Scripts/Models/ModelList.cs | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/vr-configurator/Assets/Resources/Material/Glas.mat b/vr-configurator/Assets/Resources/Material/Glas.mat index 59c188a..2cb2179 100644 --- a/vr-configurator/Assets/Resources/Material/Glas.mat +++ b/vr-configurator/Assets/Resources/Material/Glas.mat @@ -30,7 +30,7 @@ Material: m_InvalidKeywords: [] m_LightmapFlags: 4 m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 + m_DoubleSidedGI: 1 m_CustomRenderQueue: 3000 stringTagMap: RenderType: Transparent @@ -108,7 +108,7 @@ Material: - _BumpScale: 1 - _ClearCoatMask: 0 - _ClearCoatSmoothness: 0 - - _Cull: 2 + - _Cull: 0 - _Cutoff: 0.5 - _DetailAlbedoMapScale: 1 - _DetailNormalMapScale: 1 diff --git a/vr-configurator/Assets/Scripts/Models/Definitions.cs b/vr-configurator/Assets/Scripts/Models/Definitions.cs index 0629827..1d8f690 100644 --- a/vr-configurator/Assets/Scripts/Models/Definitions.cs +++ b/vr-configurator/Assets/Scripts/Models/Definitions.cs @@ -114,4 +114,5 @@ public class Definitions public const string PORT_ERLBACH_GRILL = "portErlbach91"; public const string PORT_ERLBACH_Headlight_V_Cover = "portErlbach92"; public const string PORT_ERLBACH_Headlight_V = "portErlbach93"; + public const string PORT_ERLBACH_Windows = "portErlbachWindow"; } diff --git a/vr-configurator/Assets/Scripts/Models/ModelList.cs b/vr-configurator/Assets/Scripts/Models/ModelList.cs index 9d7e80d..d7b1b9e 100644 --- a/vr-configurator/Assets/Scripts/Models/ModelList.cs +++ b/vr-configurator/Assets/Scripts/Models/ModelList.cs @@ -155,7 +155,7 @@ public class ModelList Port.Hidden(Definitions.PORT_ERLBACH_Headlight_V_Cover, "idErlbachPart86", Vector3.zero, Quaternion.identity, 1f, new Vector3(-50f, 0f, 0f)), Port.Choosable("Front Bumper", Definitions.PORT_ERLBACH_FrontBumper, "idErlbachPart92", Vector3.zero, Quaternion.identity, 1f, new Vector3(-20f, 0f, 0f)), Port.Hidden(Definitions.PORT_ERLBACH_Headlight_V, "idErlbachPart93", Vector3.zero, Quaternion.identity, 1f, new Vector3(-60f, 0f, 0f)), - Port.Choosable("Glas", "XFenster", "idErlbachGlas", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 0f, 90f)), + Port.Choosable("Glas", Definitions.PORT_ERLBACH_Windows, "idErlbachGlas", Vector3.zero, Quaternion.identity, 1f, new Vector3(0f, 0f, 90f)), } ) }; @@ -407,7 +407,7 @@ public class ModelList new ModelElement( Definitions.PORT_ERLBACH_GRILL, "Standard Grille", "idErlbachPart91", Resources.Load($"Material/AluminiumPolished"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), new ModelElement( Definitions.PORT_ERLBACH_FrontBumper, "FrontBumper", "idErlbachPart92", Resources.Load($"Material/AluminiumBrushed"), Vector3.zero, Quaternion.identity, Vector3.one, null, DefaultColors ), new ModelElement( Definitions.PORT_ERLBACH_Headlight_V, "Headlight", "idErlbachPart93", Resources.Load($"Material/MetalMesh"), Vector3.zero, Quaternion.identity, Vector3.one, null, null ), - new ModelElement("XFenster", "Fenster", "idErlbachGlas", Resources.Load($"Material/Glas"), Vector3.zero, Quaternion.identity, Vector3.one, null, FensterColor), + new ModelElement( Definitions.PORT_ERLBACH_Windows, "Fenster", "idErlbachGlas", Resources.Load($"Material/Glas"), Vector3.zero, Quaternion.identity, Vector3.one, null, FensterColor), }, Resources.LoadAll($"Model/ERLbach/ERLBach_mit_Fenster"), 1 //skip basemodel