using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; 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); } } } }