WasmGPU - v0.6.0
Preparing search index...
Scene
Class Scene
Index
Constructors
constructor
Properties
MAX_
LIGHTS
Accessors
background
enabled
Lights
glyph
Fields
lights
meshes
point
Clouds
visible
Glyph
Fields
visible
Meshes
visible
Point
Clouds
Methods
add
add
Light
clear
clear
Glyph
Fields
clear
Lights
clear
Point
Clouds
destroy
find
All
By
Name
find
All
Glyph
Fields
By
Name
find
All
Point
Clouds
By
Name
find
By
Name
find
Glyph
Field
By
Name
find
Point
Cloud
By
Name
get
Ambient
Color
get
Lighting
Data
remove
remove
Light
traverse
traverse
Glyph
Fields
traverse
Point
Clouds
traverse
Visible
traverse
Visible
Glyph
Fields
traverse
Visible
Point
Clouds
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
[]
glyph
Fields
get
glyphFields
()
:
readonly
GlyphField
[]
Returns
readonly
GlyphField
[]
lights
get
lights
()
:
readonly
Light
[]
Returns
readonly
Light
[]
meshes
get
meshes
()
:
readonly
Mesh
[]
Returns
readonly
Mesh
[]
point
Clouds
get
pointClouds
()
:
readonly
PointCloud
[]
Returns
readonly
PointCloud
[]
visible
Glyph
Fields
get
visibleGlyphFields
()
:
GlyphField
[]
Returns
GlyphField
[]
visible
Meshes
get
visibleMeshes
()
:
Mesh
[]
Returns
Mesh
[]
visible
Point
Clouds
get
visiblePointClouds
()
:
PointCloud
[]
Returns
PointCloud
[]
Methods
add
add
(
mesh
:
Mesh
)
:
this
Parameters
mesh
:
Mesh
Returns
this
add
(
pointCloud
:
PointCloud
)
:
this
Parameters
pointCloud
:
PointCloud
Returns
this
add
(
glyphField
:
GlyphField
)
:
this
Parameters
glyphField
:
GlyphField
Returns
this
add
Light
addLight
(
light
:
Light
)
:
this
Parameters
light
:
Light
Returns
this
clear
clear
()
:
this
Returns
this
clear
Glyph
Fields
clearGlyphFields
()
:
this
Returns
this
clear
Lights
clearLights
()
:
this
Returns
this
clear
Point
Clouds
clearPointClouds
()
:
this
Returns
this
destroy
destroy
()
:
void
Returns
void
find
All
By
Name
findAllByName
(
name
:
string
)
:
Mesh
[]
Parameters
name
:
string
Returns
Mesh
[]
find
All
Glyph
Fields
By
Name
findAllGlyphFieldsByName
(
name
:
string
)
:
GlyphField
[]
Parameters
name
:
string
Returns
GlyphField
[]
find
All
Point
Clouds
By
Name
findAllPointCloudsByName
(
name
:
string
)
:
PointCloud
[]
Parameters
name
:
string
Returns
PointCloud
[]
find
By
Name
findByName
(
name
:
string
)
:
Mesh
|
undefined
Parameters
name
:
string
Returns
Mesh
|
undefined
find
Glyph
Field
By
Name
findGlyphFieldByName
(
name
:
string
)
:
GlyphField
|
undefined
Parameters
name
:
string
Returns
GlyphField
|
undefined
find
Point
Cloud
By
Name
findPointCloudByName
(
name
:
string
)
:
PointCloud
|
undefined
Parameters
name
:
string
Returns
PointCloud
|
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
(
pointCloud
:
PointCloud
)
:
this
Parameters
pointCloud
:
PointCloud
Returns
this
remove
(
glyphField
:
GlyphField
)
:
this
Parameters
glyphField
:
GlyphField
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
Glyph
Fields
traverseGlyphFields
(
callback
:
(
g
:
GlyphField
)
=>
void
)
:
void
Parameters
callback
:
(
g
:
GlyphField
)
=>
void
Returns
void
traverse
Point
Clouds
traversePointClouds
(
callback
:
(
pc
:
PointCloud
)
=>
void
)
:
void
Parameters
callback
:
(
pc
:
PointCloud
)
=>
void
Returns
void
traverse
Visible
traverseVisible
(
callback
:
(
mesh
:
Mesh
)
=>
void
)
:
void
Parameters
callback
:
(
mesh
:
Mesh
)
=>
void
Returns
void
traverse
Visible
Glyph
Fields
traverseVisibleGlyphFields
(
callback
:
(
g
:
GlyphField
)
=>
void
)
:
void
Parameters
callback
:
(
g
:
GlyphField
)
=>
void
Returns
void
traverse
Visible
Point
Clouds
traverseVisiblePointClouds
(
callback
:
(
pc
:
PointCloud
)
=>
void
)
:
void
Parameters
callback
:
(
pc
:
PointCloud
)
=>
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
glyph
Fields
lights
meshes
point
Clouds
visible
Glyph
Fields
visible
Meshes
visible
Point
Clouds
Methods
add
add
Light
clear
clear
Glyph
Fields
clear
Lights
clear
Point
Clouds
destroy
find
All
By
Name
find
All
Glyph
Fields
By
Name
find
All
Point
Clouds
By
Name
find
By
Name
find
Glyph
Field
By
Name
find
Point
Cloud
By
Name
get
Ambient
Color
get
Lighting
Data
remove
remove
Light
traverse
traverse
Glyph
Fields
traverse
Point
Clouds
traverse
Visible
traverse
Visible
Glyph
Fields
traverse
Visible
Point
Clouds
Source code
Examples
WasmGPU - v0.6.0
Loading...