Class RangeChannel
A CameraChannel<T> that generates a range-depth texture where each pixel contains the distance between the surface captured by the pixel and the camera.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth.Sensors.Channels
Assembly: Unity.Perception.Runtime.dll
Syntax
[MovedFrom("UnityEngine.Perception.GroundTruth")]
public class RangeChannel : CameraChannel<float4>
Properties
clearColor
The color to use when clearing the output texture of the channel.
Declaration
public override Color clearColor { get; }
Property Value
| Type | Description |
|---|---|
| Color |
Overrides
Methods
CreateOutputTexture(int, int)
Initializes and returns a new RenderTexture that will contain the output of the channel.
Declaration
public override RenderTexture CreateOutputTexture(int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | The requested width of the output texture in pixels. |
| int | height | The requested height of the output texture in pixels. |
Returns
| Type | Description |
|---|---|
| RenderTexture | The newly created channel output texture. |
Overrides
Execute(CameraChannelInputs, RenderTexture)
Perform the graphics operations necessary to render the output of the channel.
Declaration
public override void Execute(CameraChannelInputs inputs, RenderTexture renderTarget)
Parameters
| Type | Name | Description |
|---|---|---|
| CameraChannelInputs | inputs | A variety of input parameters that can be used to provide context to a channel to facilitate rendering. |
| RenderTexture | renderTarget | The render target to write the channel output to. |