Skip to Content
Bear documentation

treeToScene

Import from bear/engine/treeToScene.

Functions

disposeScene()

function disposeScene(scene): void;

Defined in: bear/engine/treeToScene.ts:38

Free what treeToScene made for a scene that is no longer drawn. A renderer keeps every geometry it drew, and its vertex arrays, until it is disposed. Materials from the descriptor cache are shared across scenes, so they stay, and so does a geometry a shape cache still owns: the next scene draws it.

Parameters

ParameterType
sceneScene

Returns

void


treeToScene()

function treeToScene(result): Scene;

Defined in: bear/engine/treeToScene.ts:25

Convert a render into a Three.js Scene.

Parameters

ParameterType
resultModelView

Returns

Scene

On this page