Skip to content

Commit

Permalink
Fix ocean fog (#803)
Browse files Browse the repository at this point in the history
## Bug fixes
- Fixed ocean fog radius: Water no longer looks weird just below the
surface. Thanks Can't Afford A Name for pointing the solution out.
  • Loading branch information
xen-42 authored Mar 12, 2024
2 parents 0036028 + c21fd90 commit 717047b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NewHorizons/Builder/Body/WaterBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ public static RadialFluidVolume Make(GameObject planetGO, Sector sector, OWRigid
var fogGO = Object.Instantiate(_oceanFog, waterGO.transform);
fogGO.name = "OceanFog";
fogGO.transform.localPosition = Vector3.zero;
fogGO.transform.localScale = Vector3.one;
// In base game GD ocean fog is 550 while the water volume is 500
fogGO.transform.localScale = Vector3.one * 550f / 500f;
fogGO.SetActive(true);

if (module.tint != null)
Expand Down

0 comments on commit 717047b

Please sign in to comment.