Class CustomRendererSampler
This sampler provide a way to render the scene by bypassing the normal step of the camera rendering.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
public class CustomRendererSampler : SceneSampler
Constructors
CustomRendererSampler(GameObject, IPhotosensorArrayDescription, LensSystemDesc, SceneSamplerDesc, Action<ScriptableRenderContext, HDCamera>)
Constructs a sampler that bypasses HDRP and defines its own rendering process.
Declaration
public CustomRendererSampler(GameObject parent, IPhotosensorArrayDescription sensorDesc, LensSystemDesc lensSystem, SceneSamplerDesc samplerDesc, Action<ScriptableRenderContext, HDCamera> callback)
Parameters
Type | Name | Description |
---|---|---|
GameObject | parent | The gameobject corresponding to the component using this. Used to instantiate a unity camera to execute the sampling. |
IPhotosensorArrayDescription | sensorDesc | Information defined on the photosensor array node. |
LensSystemDesc | lensSystem | Information defined on the lens component. |
SceneSamplerDesc | samplerDesc | Extra parameters for the sampler. |
Action<ScriptableRenderContext, HDCamera> | callback | Function to invoke when the sampling is completed. |
Methods
InternalRelease()
Release extra elements specific to this sampler. Mainly unregistering the rendering callback on the camera.
Declaration
protected override void InternalRelease()