using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.PostProcessing;

public class BloomController : MonoBehaviour {

    PostProcessingBehaviour post;

	// Use this for initialization
	void Start () {
        post = GetComponent<PostProcessingBehaviour>();
	}
	
	// Update is called once per frame
	void Update () {
        BloomModel.Settings settings = post.profile.bloom.settings;
        settings.bloom.intensity = (Mathf.Sin(Time.realtimeSinceStartup * 2) + 1) * 2;
        post.profile.bloom.settings = settings;
        
	}
}
