soundvision/UnityProject/Assets/Scenes/Examples/PostProcessing/script/BokehBind.cs
2019-10-04 21:58:32 +02:00

19 lines
409 B
C#

using UnityEngine;
using UnityEngine.Experimental.Rendering.HDPipeline;
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;
}
}