mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Size the inner warp fog sphere
This commit is contained in:
parent
e8d7307bb3
commit
c9ee5ec1ac
@ -257,7 +257,9 @@ namespace NewHorizons.Builder.Props
|
|||||||
|
|
||||||
// Seed fog works differently, so it doesn't need to be fixed
|
// Seed fog works differently, so it doesn't need to be fixed
|
||||||
// (it's also located on a different child path, so the below FindChild calls wouldn't work)
|
// (it's also located on a different child path, so the below FindChild calls wouldn't work)
|
||||||
|
// Default size is 70
|
||||||
var fog = brambleNode.FindChild("Effects/InnerWarpFogSphere");
|
var fog = brambleNode.FindChild("Effects/InnerWarpFogSphere");
|
||||||
|
fog.transform.localScale = Vector3.one * config.scale * 70f;
|
||||||
var fogMaterial = fog.GetComponent<MeshRenderer>().material;
|
var fogMaterial = fog.GetComponent<MeshRenderer>().material;
|
||||||
fogMaterial.SetFloat("_Radius", fogMaterial.GetFloat("_Radius") * config.scale);
|
fogMaterial.SetFloat("_Radius", fogMaterial.GetFloat("_Radius") * config.scale);
|
||||||
fogMaterial.SetFloat("_Density", fogMaterial.GetFloat("_Density") / config.scale);
|
fogMaterial.SetFloat("_Density", fogMaterial.GetFloat("_Density") / config.scale);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user