WasmGPU - v0.4.0
Preparing search index...
Scene
Class Scene
Index
Constructors
constructor
Properties
MAX_
LIGHTS
Accessors
background
enabled
Lights
lights
meshes
visible
Meshes
Methods
add
add
Light
clear
clear
Lights
destroy
find
All
By
Name
find
By
Name
get
Ambient
Color
get
Lighting
Data
remove
remove
Light
traverse
traverse
Visible
Constructors
constructor
new
Scene
(
descriptor
?:
SceneDescriptor
)
:
Scene
Parameters
descriptor
:
SceneDescriptor
= {}
Returns
Scene
Properties
Static
Readonly
MAX_
LIGHTS
MAX_LIGHTS
:
8
Accessors
background
get
background
()
:
Color
Returns
Color
set
background
(
value
:
Color
)
:
void
Parameters
value
:
Color
Returns
void
enabled
Lights
get
enabledLights
()
:
Light
[]
Returns
Light
[]
lights
get
lights
()
:
readonly
Light
[]
Returns
readonly
Light
[]
meshes
get
meshes
()
:
readonly
Mesh
[]
Returns
readonly
Mesh
[]
visible
Meshes
get
visibleMeshes
()
:
Mesh
[]
Returns
Mesh
[]
Methods
add
add
(
mesh
:
Mesh
)
:
this
Parameters
mesh
:
Mesh
Returns
this
add
Light
addLight
(
light
:
Light
)
:
this
Parameters
light
:
Light
Returns
this
clear
clear
()
:
this
Returns
this
clear
Lights
clearLights
()
:
this
Returns
this
destroy
destroy
()
:
void
Returns
void
find
All
By
Name
findAllByName
(
name
:
string
)
:
Mesh
[]
Parameters
name
:
string
Returns
Mesh
[]
find
By
Name
findByName
(
name
:
string
)
:
Mesh
|
undefined
Parameters
name
:
string
Returns
Mesh
|
undefined
get
Ambient
Color
getAmbientColor
()
:
Color
Returns
Color
get
Lighting
Data
getLightingData
()
:
{
ambient
:
Color
;
lights
:
Light
[]
}
Returns
{
ambient
:
Color
;
lights
:
Light
[]
}
remove
remove
(
mesh
:
Mesh
)
:
this
Parameters
mesh
:
Mesh
Returns
this
remove
Light
removeLight
(
light
:
Light
)
:
this
Parameters
light
:
Light
Returns
this
traverse
traverse
(
callback
:
(
mesh
:
Mesh
)
=>
void
)
:
void
Parameters
callback
:
(
mesh
:
Mesh
)
=>
void
Returns
void
traverse
Visible
traverseVisible
(
callback
:
(
mesh
:
Mesh
)
=>
void
)
:
void
Parameters
callback
:
(
mesh
:
Mesh
)
=>
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
MAX_
LIGHTS
Accessors
background
enabled
Lights
lights
meshes
visible
Meshes
Methods
add
add
Light
clear
clear
Lights
destroy
find
All
By
Name
find
By
Name
get
Ambient
Color
get
Lighting
Data
remove
remove
Light
traverse
traverse
Visible
Source code
Examples (ESM)
Examples (IIFE)
WasmGPU - v0.4.0
Loading...