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);
}
}
'Unity > ETC' 카테고리의 다른 글
Galaxy S21, S7, fire HD 10 스펙 (0) | 2021.05.12 |
---|---|
빌드후에 라이트문제가 발생했을때 (0) | 2020.12.30 |
Post process 간략 설명 (0) | 2020.12.18 |
Terrain Bake시 주의할점 (0) | 2020.12.16 |
Reflection Probe의 반사.. (0) | 2020.12.14 |