soundvision/UnityProject/Assets/Scenes/Examples/PostProcessing/script/BokehBind.cs
2020-03-04 21:47:24 +01:00

19 lines
400 B
C#

using UnityEngine;
using UnityEngine.Rendering.HighDefinition;
using UnityEngine.Rendering;
public class BokehBind : MonoBehaviour
{
private Bloom bloom_;
[SerializeField] Volume volume = null;
private void Start()
{
volume.profile.TryGet(out bloom_);
}
public void OnEnergyChanged(float energy)
{
bloom_.intensity.value = energy / 500f;
}
}