Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Common ←ConditionalRenderer

OnAddRenderCommands

Invoked when it is time to add rendering commands to the command buffer.

Declaration​

protected abstract bool OnAddRenderCommands(CommandBuffer cmd, Material mat)

Summary​

Invoked when it is time to add rendering commands to the command buffer.

Returns​

Whether the command buffer could be successfully configured.

Parameters​

NameTypeSummary
cmdCommandBuffer
The command buffer resource.
matMaterial
The material that should be used to draw the frame.