CombinedRender
Extends:
A renderer-wrapper to combine the individual aspects of renderers into a single scene, e.g. render a player and a block at once
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object, element: HTMLElement) |
Member Summary
Public Members | ||
public |
|
Method Summary
Public Methods | ||
public |
Initializes the renderer - This has to be called before render |
|
public |
render() Starts rendering - This has to be called after init |
Inherited Summary
From class Render | ||
public |
element: HTMLElement DOM Element to attach the renderer to |
|
public |
options: { Combined options |
|
public |
|
|
public |
addToScene(toAdd: *) Adds an object to the scene & sets userData.renderType to this renderer's type |
|
public |
clearScene(onlySelfType: *, filterFn: *) Clears the scene |
|
public |
dispose() |
|
public |
Export the current scene content in the .gltf format (geometries + textures) |
|
public |
|
|
public |
Export the current scene content in the .obj format (only geometries, no textures) |
|
public |
toPLY(exportOptions: *): * |
|
protected |
Initializes the scene |
Public Constructors
public constructor(options: Object, element: HTMLElement) source
Override:
Render#constructorParams:
Name | Type | Attribute | Description |
options | Object |
|
The options for this renderer, see defaultOptions |
element | HTMLElement |
|
DOM Element to attach the renderer to - defaults to document.body |