Skip to main content

Class: SceneManager

Defined in: render/scene.ts:9

Constructors

Constructor

new SceneManager(): SceneManager;

Returns

SceneManager

Methods

GetDefault()

static GetDefault(): number;

Defined in: render/scene.ts:14

Get the default scene handle

Returns

number

The default scene handle


SetAmbientLight()

static SetAmbientLight(
sceneHandle,
r,
g,
b,
intensity): boolean;

Defined in: render/scene.ts:42

Set the ambient light for the scene

Parameters

ParameterTypeDescription
sceneHandlenumberThe scene handle
rnumberRed component (0-1)
gnumberGreen component (0-1)
bnumberBlue component (0-1)
intensitynumberThe ambient light intensity

Returns

boolean

boolean indicating success


SetFog()

static SetFog(
sceneHandle,
enabled,
mode,
density,
start,
end): boolean;

Defined in: render/scene.ts:70

Set the fog parameters for the scene

Parameters

ParameterTypeDescription
sceneHandlenumberThe scene handle
enabledbooleanWhether fog is enabled
modenumberThe fog mode
densitynumberThe fog density
startnumberThe fog start distance
endnumberThe fog end distance

Returns

boolean

boolean indicating success


SetSkybox()

static SetSkybox(sceneHandle, skyboxHandle): boolean;

Defined in: render/scene.ts:24

Set the skybox for the scene

Parameters

ParameterTypeDescription
sceneHandlenumberThe scene handle
skyboxHandlenumberThe skybox material handle

Returns

boolean

boolean indicating success