Type Definitions
Version 8 preview
This page documents a preview of the Viewer SDK v8. APIs and content can still change before the final release.
RenderLayerOptions
Options for configuring a render layer.
Properties
| renderOrder number | Global ordering within the same renderTarget. For ‘main’ target: negative values render before the main scene, positive values render after. For ‘overlay’ target: higher values render later. |
| renderTarget string | Where to render this layer. ‘main’ - Rendered during the main pass (before/after main scene based on renderOrder) ‘overlay’ - Rendered during the overlay pass (after all main content) |
| clearDepthAfter boolean | Clear the depth buffer after rendering this layer. Useful when subsequent layers should render without depth interference from this layer. Only available for ‘main’ renderTarget. |
| visible boolean | Whether this layer is visible. |