Fix preview fog lights not being in the correct positions

This commit is contained in:
coderCleric 2023-09-15 16:32:34 -06:00
parent 8a2510d1d3
commit c8208fa087

View File

@ -235,7 +235,11 @@ namespace NewHorizons.Builder.Props
// account for scale (this will fix the issue with screen fog caused by scaled down nodes) // account for scale (this will fix the issue with screen fog caused by scaled down nodes)
// Set the main scale // Set the main scale
brambleNode.transform.localScale = Vector3.one * config.scale; // Can't just use localScale of root, that makes the preview fog lights get pulled in too much
foreach(Transform child in brambleNode.transform)
{
child.localScale = Vector3.one * config.scale;
}
innerFogWarpVolume._warpRadius *= config.scale; innerFogWarpVolume._warpRadius *= config.scale;
innerFogWarpVolume._exitRadius *= config.scale; innerFogWarpVolume._exitRadius *= config.scale;