TG9six 03a642d635 first push
first push
2025-09-06 17:17:39 +04:00

26 lines
734 B
C#

using UnityEngine;
namespace VolumetricFogAndMist2 {
[ExecuteInEditMode]
public class FogVoid : MonoBehaviour {
[Range(0, 1)] public float roundness = 0.5f;
[Range(0, 1)] public float falloff = 0.5f;
private void OnEnable() {
VolumetricFogManager.fogVoidManager.RegisterFogVoid(this);
}
private void OnDisable() {
if (VolumetricFogManager.GetManagerIfExists() != null) {
VolumetricFogManager.fogVoidManager.UnregisterFogVoid(this);
}
}
void OnDrawGizmosSelected() {
Gizmos.color = new Color(1, 1, 0, 0.75F);
Gizmos.DrawWireCube(transform.position, transform.lossyScale);
}
}
}