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
-
GLMonoBehaviourSeparableNamedShaderPostProcess
- Implements
- Derived
- Inherited Members
-
GLMonoBehaviour.FindObjectsOfInterface<TInterface>()GLMonoBehaviour.FindRequiredObjectOfType<T>()GLMonoBehaviour.GetRequiredComponent<T>()GLMonoBehaviour.GetRequiredComponentInChildren<T>()MonoBehaviour.IsInvoking()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.runInEditModeComponent.GetComponent<T>()Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentsInParent<T>()Component.transformComponent.gameObjectComponent.tagObject.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.nameObject.hideFlags
Properties
ShaderName
protected abstract string ShaderName { get; }
Property Value
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
sourceTextureRenderTextureThe full screen source texture.
destTextureRenderTextureThe 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
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()