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
| Parameter | Type | Description |
|---|---|---|
sceneHandle | number | The scene handle |
r | number | Red component (0-1) |
g | number | Green component (0-1) |
b | number | Blue component (0-1) |
intensity | number | The 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
| Parameter | Type | Description |
|---|---|---|
sceneHandle | number | The scene handle |
enabled | boolean | Whether fog is enabled |
mode | number | The fog mode |
density | number | The fog density |
start | number | The fog start distance |
end | number | The 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
| Parameter | Type | Description |
|---|---|---|
sceneHandle | number | The scene handle |
skyboxHandle | number | The skybox material handle |
Returns
boolean
boolean indicating success