JohnCorby 656ff16305 Revert "Reformat"
This reverts commit 7c0ba5597720f963432d8379a236e74f3508d077.
2022-05-22 18:41:34 -07:00

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);
}
}
}
}