Class PhotosensorToIntensity
The role of this class is to interpret the data incoming from the photosensor into an intensity texture. The internal shader does extract the intensity information and format it into a 2D texture according to the frame information.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
public class PhotosensorToIntensity : PhotosensorEncoder
Fields
_outputBuffer
An internal reference to the render texture used to output the result.
Declaration
protected RenderTexture _outputBuffer
Field Value
| Type | Description |
|---|---|
| RenderTexture |
height
Declaration
[Tooltip("Vertical frame size.")]
[Field("FrameHeight", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<uint> height
Field Value
| Type | Description |
|---|---|
| PortType<UInt32> |
intensity
Declaration
[Tooltip("Current state of the frame sampled.")]
[Field("Intensity", PortDirection.Right, FieldExtra.Write)]
[SerializeField]
protected PortType<RenderTexture> intensity
Field Value
| Type | Description |
|---|---|
| PortType<RenderTexture> |
width
Declaration
[Tooltip("Horizontal frame size.")]
[Field("FrameWidth", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<uint> width
Field Value
| Type | Description |
|---|---|
| PortType<UInt32> |
Methods
Disable()
Disable the change event on the input render texture and release the graphic resources.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Enable the change event on the input render texture and initialize the compute shader.
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 conversion of the photosensor sampling data into an intensity buffer.
Declaration
protected override void Transcode(CustomPassContext ctx)
Parameters
| Type | Name | Description |
|---|---|---|
| CustomPassContext | ctx | Custom pass context |