From f1e3359a5b6c078e845838ede1ae8d58cbd8ef25 Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 16 Nov 2023 16:56:42 -0500 Subject: [PATCH] Fix depth on the frozen monster --- DredgeVR/World/WorldManager.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/DredgeVR/World/WorldManager.cs b/DredgeVR/World/WorldManager.cs index aa6ff98..ffc2556 100644 --- a/DredgeVR/World/WorldManager.cs +++ b/DredgeVR/World/WorldManager.cs @@ -93,6 +93,15 @@ private void OnGameSceneStart() // OnDestroy breaks the reference to the culling brain so we reconnect it so other scripts don't NRE GameManager.Instance.CullingBrain = cullingBrain; } + + if (DLCHelper.OwnsThePaleReach()) + { + foreach (var meshRenderer in GameObject.FindObjectsOfType().Where(x => x.material.shader.name.Contains("DLC1TransparentIceShader"))) + { + // Since we break depth textures we have to fix this shader + meshRenderer.material.SetFloat("_IceDepth", 0.00025f); + } + } } public void OnPlayerSpawned()