Interface IPostProcessChannel
When implemented on a CameraChannel<T>, this interface enables a channel to post process its output texture after all CameraSensors and channels have been rendered. Any graphics commands authored within an implemented PostProcessChannelOutput method will be run at the end of any given frame, well after the channel's Execute() method has been called.
Namespace: UnityEngine.Perception.GroundTruth.Sensors.Channels
Assembly: Unity.Perception.Runtime.dll
Syntax
[MovedFrom("UnityEngine.Perception.GroundTruth")]
public interface IPostProcessChannel
Properties
preprocessTexture
The combine channel output texture before post processing.
Declaration
RenderTexture preprocessTexture { get; set; }
Property Value
Type | Description |
---|---|
RenderTexture |
Methods
CreatePreprocessTexture(int, int)
Creates a channel texture meant for eventual post-processing.
Declaration
RenderTexture CreatePreprocessTexture(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
int | width | The width of the texture. |
int | height | The height of the texture. |
Returns
Type | Description |
---|---|
RenderTexture |
PostProcessChannelOutput(ScriptableRenderContext, CommandBuffer, RenderTexture, RenderTexture)
Perform post processing steps on a channel's preprocessTexture.
Declaration
void PostProcessChannelOutput(ScriptableRenderContext ctx, CommandBuffer cmd, RenderTexture input, RenderTexture output)
Parameters
Type | Name | Description |
---|---|---|
ScriptableRenderContext | ctx | The current frame's ScriptableRenderContext |
CommandBuffer | cmd | The commandBuffer to enqueue post processing commands into. |
RenderTexture | input | The channel's preprocess texture. |
RenderTexture | output | The channel's outputTexture. |