23 lines
696 B
C#
23 lines
696 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
|
|
public class PostProcessController : MonoBehaviour
|
|
{
|
|
// Start is called before the first frame update
|
|
public static void SetToFlur()
|
|
{
|
|
Volume volume = CommonData.MainCamera.GetComponent<Volume>();
|
|
VolumeComponent dof = volume.profile.components[0];
|
|
dof.parameters[7].SetValue(new FloatParameter(300));
|
|
}
|
|
|
|
public static void ResetToClear()
|
|
{
|
|
Volume volume = CommonData.MainCamera.GetComponent<Volume>();
|
|
VolumeComponent dof = volume.profile.components[0];
|
|
dof.parameters[7].SetValue(new FloatParameter(50));
|
|
}
|
|
}
|