Table of Contents

Class SeparableNamedShaderPostProcess

Namespace
Gamelogic.Fx.BuiltIn.PostProcessing
Assembly
Gamelogic.Fx.BuiltIn.dll

Encapsulates a post process based on a separable filter, such as a box blur.

[Version(1, 1, 0)]
[ExecuteInEditMode]
public abstract class SeparableNamedShaderPostProcess : GLMonoBehaviour, IPostProcess
Inheritance
GLMonoBehaviour
SeparableNamedShaderPostProcess
Implements
Derived
Inherited Members
GLMonoBehaviour.FindObjectsOfInterface<TInterface>()
GLMonoBehaviour.FindRequiredObjectOfType<T>()
GLMonoBehaviour.GetRequiredComponent<T>()
GLMonoBehaviour.GetRequiredComponentInChildren<T>()
MonoBehaviour.IsInvoking()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.runInEditMode
Component.GetComponent<T>()
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentsInParent<T>()
Component.transform
Component.gameObject
Component.tag
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.name
Object.hideFlags

Properties

ShaderName

protected abstract string ShaderName { get; }

Property Value

string

Methods

OnDisable()

public void OnDisable()

OnEnable()

public void OnEnable()

OnRenderImage(RenderTexture, RenderTexture)

The function that performs the post process effect.

public virtual void OnRenderImage(RenderTexture sourceTexture, RenderTexture destTexture)

Parameters

sourceTexture RenderTexture

The full screen source texture.

destTexture RenderTexture

The render target for the post process.

Remarks

A typical implementation UnityEngine.Graphics.Blit(UnityEngine.Texture, UnityEngine.RenderTexture, UnityEngine.Material) to do perform the post process effect.

SetMaterialProperties(Direction, Material)

Sets the

protected virtual void SetMaterialProperties(Direction direction, Material effectMaterial)

Parameters

direction Direction
effectMaterial Material

Remarks

Implementors should override this method to set the shader's specific properties.

The method is called twice, once for each direction. The direction vector is automatically set to (1, 0) for the first pass and (0, 1) for the second pass, and so are the kernel properties: KernelSize, KernelOffset, JumpSize.

Start()

public void Start()