PostProcessingProfile.cs
2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
namespace UnityEngine.PostProcessing
{
public class PostProcessingProfile : ScriptableObject
{
#pragma warning disable 0169 // "field x is never used"
public BuiltinDebugViewsModel debugViews = new BuiltinDebugViewsModel();
public FogModel fog = new FogModel();
public AntialiasingModel antialiasing = new AntialiasingModel();
public AmbientOcclusionModel ambientOcclusion = new AmbientOcclusionModel();
public ScreenSpaceReflectionModel screenSpaceReflection = new ScreenSpaceReflectionModel();
public DepthOfFieldModel depthOfField = new DepthOfFieldModel();
public MotionBlurModel motionBlur = new MotionBlurModel();
public EyeAdaptationModel eyeAdaptation = new EyeAdaptationModel();
public BloomModel bloom = new BloomModel();
public ColorGradingModel colorGrading = new ColorGradingModel();
public UserLutModel userLut = new UserLutModel();
public ChromaticAberrationModel chromaticAberration = new ChromaticAberrationModel();
public GrainModel grain = new GrainModel();
public VignetteModel vignette = new VignetteModel();
public DitheringModel dithering = new DitheringModel();
#if UNITY_EDITOR
// Monitor settings
[Serializable]
public class MonitorSettings
{
// Callback used in the editor to grab the rendered frame and sent it to monitors
public Action<RenderTexture> onFrameEndEditorOnly;
// Global
public int currentMonitorID = 0;
public bool refreshOnPlay = false;
// Histogram
public enum HistogramMode
{
Red = 0,
Green = 1,
Blue = 2,
Luminance = 3,
RGBMerged,
RGBSplit
}
public HistogramMode histogramMode = HistogramMode.Luminance;
// Waveform
public float waveformExposure = 0.12f;
public bool waveformY = false;
public bool waveformR = true;
public bool waveformG = true;
public bool waveformB = true;
// Parade
public float paradeExposure = 0.12f;
// Vectorscope
public float vectorscopeExposure = 0.12f;
public bool vectorscopeShowBackground = true;
}
public MonitorSettings monitors = new MonitorSettings();
#endif
}
}