Skip to content

Commit

Permalink
Fix depth on the frozen monster
Browse files Browse the repository at this point in the history
  • Loading branch information
xen-42 committed Nov 16, 2023
1 parent 61187b5 commit f1e3359
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DredgeVR/World/WorldManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<MeshRenderer>().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()
Expand Down

0 comments on commit f1e3359

Please sign in to comment.