Class LuminanceFilter
The role of this class is to compute the luminance from the rgb channel and store it in the output RenderTexture.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
[NodeCategory("Color filter", "LuminanceFilter", 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 LuminanceFilter : 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 computing the luminance from the color channels.
Declaration
protected override void Transcode(CustomPassContext ctx)
Parameters
Type | Name | Description |
---|---|---|
CustomPassContext | ctx | Custom pass context |