Class RedFilter
The role of this class is to keep only the red channel information from the incoming render texture.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
[NodeCategory("Color filter", "RedFilter", NodeTick.Asynchronous, (LifeCycle)0, 0F, NodeMode.Standard, false)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.sensorsdk@1.0/manual/DeveloperGuide/Transcoders.html")]
public class RedFilter : RenderTextureTranscoder
Methods
Disable()
Disable the change event on the inTranscode port and release graphics resources.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Initialize the filter and enable on change event on the on inTranscode port.
Declaration
public override void Enable(Scheduler.ClockState clockState)
Parameters
Type | Name | Description |
---|---|---|
Scheduler.ClockState | clockState | The parameters of the waveform associated to this node |
Overrides
Transcode(CustomPassContext)
Add to the command buffer the process of removing all color channels and keeping only the red one.
Declaration
protected override void Transcode(CustomPassContext ctx)
Parameters
Type | Name | Description |
---|---|---|
CustomPassContext | ctx | Custom pass context |