using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
public class PostProcessingTest : MonoBehaviour
{
public Volume Volume;
public Bloom Bloom;
public ChromaticAberration ChromaticAberration;
// Start is called before the first frame update
void Awake()
{
Volume.profile.TryGet(out Bloom);
Volume.profile.TryGet(out ChromaticAberration);
}
// Update is called once per frame
float Value;
void Update()
{
Value += Time.deltaTime;
Bloom.intensity.value = (Mathf.Sin(Value) * 0.5f + 0.5f) * 100;
ChromaticAberration.intensity.value = (Mathf.Sin(Value) * 0.5f + 0.5f);
}
}
원본: cafe.naver.com/unityhub/104284