docs.unity3d.com
    Show / Hide Table of Contents

    Class GreenFilter

    The role of this class is to keep only the green channel information from the incoming render texture.

    Inheritance
    Object
    NodeRuntime
    Transcoder
    RenderTextureTranscoder
    GreenFilter
    Inherited Members
    RenderTextureTranscoder.inRenderTexture
    RenderTextureTranscoder.outRenderTexture
    RenderTextureTranscoder._outputBuffer
    RenderTextureTranscoder.PrepareOutputBuffer(Int32, Int32, RenderTextureFormat, RenderTextureReadWrite)
    RenderTextureTranscoder.Release()
    Transcoder.inTranscode
    Transcoder.outTranscode
    Transcoder._computeShader
    Transcoder._computeKernelIdx
    Transcoder.EnableInterfaceOnChangeEvent()
    Transcoder.DisableInterfaceOnChangeEvent()
    Transcoder.InitializeComputeShader(String, String)
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.OnTick(Double, Double, Scheduler.ClockState, Scheduler.Signal)
    NodeRuntime.Update()
    NodeRuntime.FixedUpdate()
    NodeRuntime.OnPortAdded(String, Type, String, PortDirection, FieldExtra, IPortType)
    NodeRuntime.OnPortRemoved(String)
    NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
    NodeRuntime.QueryPath
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    Namespace: Mechatronics.SensorSDK
    Syntax
    [NodeCategory("Color filter", "GreenFilter", 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 GreenFilter : RenderTextureTranscoder

    Methods

    Disable()

    Disable the change event on the inTranscode port and release graphics resources.

    Declaration
    public override void Disable()
    Overrides
    NodeRuntime.Disable()

    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
    NodeRuntime.Enable(Scheduler.ClockState)

    Transcode(CustomPassContext)

    Add to the command buffer the process of removing all color channels and keeping only the green one.

    Declaration
    protected override void Transcode(CustomPassContext ctx)
    Parameters
    Type Name Description
    CustomPassContext ctx

    Custom pass context

    Overrides
    Transcoder.Transcode(CustomPassContext)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023