Files
2026-06-04 11:42:34 +02:00

118 lines
2.5 KiB
C#

using System;
using UnityEngine;
namespace UnityStandardAssets.CinematicEffects
{
// Token: 0x02000002 RID: 2
[ExecuteInEditMode]
[RequireComponent(typeof(Camera))]
[AddComponentMenu("Image Effects/Anti-aliasing")]
[ImageEffectAllowedInSceneView]
public class AntiAliasing : MonoBehaviour
{
// Token: 0x17000001 RID: 1
// (get) Token: 0x06000002 RID: 2 RVA: 0x0000206E File Offset: 0x0000046E
// (set) Token: 0x06000003 RID: 3 RVA: 0x00002076 File Offset: 0x00000476
public int method
{
get
{
return this.m_Method;
}
set
{
if (this.m_Method == value)
{
return;
}
this.m_Method = value;
}
}
// Token: 0x17000002 RID: 2
// (get) Token: 0x06000004 RID: 4 RVA: 0x0000208C File Offset: 0x0000048C
public IAntiAliasing current
{
get
{
if (this.method == 0)
{
return this.m_SMAA;
}
return this.m_FXAA;
}
}
// Token: 0x17000003 RID: 3
// (get) Token: 0x06000005 RID: 5 RVA: 0x000020A6 File Offset: 0x000004A6
public Camera cameraComponent
{
get
{
if (this.m_Camera == null)
{
this.m_Camera = base.GetComponent<Camera>();
}
return this.m_Camera;
}
}
// Token: 0x06000006 RID: 6 RVA: 0x000020CB File Offset: 0x000004CB
private void OnEnable()
{
this.m_SMAA.OnEnable(this);
this.m_FXAA.OnEnable(this);
}
// Token: 0x06000007 RID: 7 RVA: 0x000020E5 File Offset: 0x000004E5
private void OnDisable()
{
this.m_SMAA.OnDisable();
this.m_FXAA.OnDisable();
}
// Token: 0x06000008 RID: 8 RVA: 0x000020FD File Offset: 0x000004FD
private void OnPreCull()
{
this.current.OnPreCull(this.cameraComponent);
}
// Token: 0x06000009 RID: 9 RVA: 0x00002110 File Offset: 0x00000510
private void OnPostRender()
{
this.current.OnPostRender(this.cameraComponent);
}
// Token: 0x0600000A RID: 10 RVA: 0x00002123 File Offset: 0x00000523
private void OnRenderImage(RenderTexture source, RenderTexture destination)
{
this.current.OnRenderImage(this.cameraComponent, source, destination);
}
// Token: 0x04000001 RID: 1
[SerializeField]
private SMAA m_SMAA = new SMAA();
// Token: 0x04000002 RID: 2
[SerializeField]
private FXAA m_FXAA = new FXAA();
// Token: 0x04000003 RID: 3
[SerializeField]
[HideInInspector]
private int m_Method;
// Token: 0x04000004 RID: 4
private Camera m_Camera;
// Token: 0x02000003 RID: 3
public enum Method
{
// Token: 0x04000006 RID: 6
Smaa,
// Token: 0x04000007 RID: 7
Fxaa
}
}
}