mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
22 lines
615 B
C#
22 lines
615 B
C#
using UnityEngine;
|
|
namespace NewHorizons.Components.SizeControllers
|
|
{
|
|
public class WaterSizeController : SizeController
|
|
{
|
|
public Material oceanFogMaterial;
|
|
|
|
private const float oceanFogR1Ratio = 1f;
|
|
private const float oceanFogR2Ratio = 0.5f;
|
|
|
|
protected new void FixedUpdate()
|
|
{
|
|
base.FixedUpdate();
|
|
if (oceanFogMaterial)
|
|
{
|
|
oceanFogMaterial.SetFloat("_Radius", oceanFogR1Ratio * CurrentScale);
|
|
oceanFogMaterial.SetFloat("_Radius2", oceanFogR2Ratio * CurrentScale);
|
|
}
|
|
}
|
|
}
|
|
}
|