-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPostProcessEffectRenderer.cs
More file actions
43 lines (35 loc) · 1.12 KB
/
Copy pathPostProcessEffectRenderer.cs
File metadata and controls
43 lines (35 loc) · 1.12 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
namespace UnityEngine.Rendering.PostProcessing
{
public abstract class PostProcessEffectRenderer
{
protected bool m_ResetHistory = true;
// Called when the renderer is created. Settings will be set before `Init` is called.
public virtual void Init()
{
}
// Unused with scriptable render pipelines
public virtual DepthTextureMode GetCameraFlags()
{
return DepthTextureMode.None;
}
public virtual void ResetHistory()
{
m_ResetHistory = true;
}
public virtual void Release()
{
ResetHistory();
}
public abstract void Render(PostProcessRenderContext context);
internal abstract void SetSettings(PostProcessEffectSettings settings);
}
public abstract class PostProcessEffectRenderer<T> : PostProcessEffectRenderer
where T : PostProcessEffectSettings
{
public T settings { get; internal set; }
internal override void SetSettings(PostProcessEffectSettings settings)
{
this.settings = (T)settings;
}
}
}