Static
Readonly
ANGLEStatic
Readonly
CAST_Static
Readonly
CAST_Mutates from which lights a shadow should be casted.
Scopes:
Static
Readonly
COLORStatic
Readonly
DIFFUSEMutates the diffuse color of Lights.
Scopes:
Static
Readonly
DIRECTIONMutates the direction of Lights.
Scopes:
Static
Readonly
ENVIRONMENTSets the environment. See BABYLON.Scene.environmentTexture.
Usually the URL to an *.env
file.
See environment page for details on how to use this.
Scopes:
string
Static
Readonly
ENVIRONMENT_Background texture on a PhotoDome. Just background, no IBL or reflection.
Recommended format is *.jpg
. HDR files are not supported as background but can be converted to *.jpg
using
tools like Photoshop, Gimp or various free online converters.
See environment page for details on how to use this.
Scopes:
string
Static
Readonly
ENVIRONMENT_Static
Readonly
ENVIRONMENT_Intensity of IBL. Defaults to 1, usually between 0 & 2.
See environment page for details on how to use this.
Scopes:
Static
Readonly
ENVIRONMENT_Rotates connected textures, i.e. IBL, reflection, background, ... Rotation angle in degree.
See environment page for details on how to use this.
Scopes:
Static
Readonly
ENVIRONMENT_If true
, sets a scene.environmentTexture
and creates a BackgroundHelper Node (via
scene.createDefaultEnvironment)
with two subnodes/meshes:
The value of this parameter is ignored if ENVIRONMENT_BACKGROUND is also set.
See environment page for details on how to use this.
Scopes:
Static
Readonly
EXPONENTStatic
Readonly
HIGHLIGHTEDStatic
Readonly
HIGHLIGHT_Static
Readonly
HIGHLIGHT_Static
Readonly
INTENSITYMutates the intensity of Lights.
Scopes:
Static
Readonly
MATERIALStatic
Readonly
MATERIAL_Static
Readonly
MATERIAL_Static
Readonly
MATERIAL_Static
Readonly
METALLICStatic
Readonly
PAINTABLEPaintables can be used to let the client/browser draw graphics on a 3d model by mutating the texture of a
material.
For detailed information have a look at the paintables page.
Also see parsePaintable for detailed information on which values you can pass to the paintable
parameter.
Scopes:
Static
Readonly
POSITIONMutates the position relative to its origin position. Getter and setter is position.
Scopes:
Static
Readonly
RECEIVE_Static
Readonly
ROTATIONStatic
Readonly
ROUGHNESSStatic
Readonly
SCALINGStatic
Readonly
SPECULARMutates the specular color of Lights.
Scopes:
Static
Readonly
VISIBLEStatic
allAll parameters defined in this class.
Static
declarationsThe ParameterDeclarations for all parameters in this class.
Static
defaultThe default ParameterValues returned as ParameterBag for a set of parameters in this class.
Static
assertAsserts whether given parameter is declared and valid.
Static
getGets the default ParameterValue for a given Parameter declared in this class.
Static
parseParses a boolean
string ('true'
/'1'
or 'false'
/'0'
) or number
(1
or 0
) to a boolean
or
undefined
.
Static
parseParses a string of format '#rrggbb'
or '(r,g,b)'
to a Color3
.
Static
parseParses a string with comma separated values to a list of strings.
Static
parseParses given ParameterBag with given ParameterDeclarations.
Static
parseParses a number string
to a number
.
Static
parseParses string defintion of a paintable into a paintable object.
Here are some examples:
// Default definition as JSON object:
'{ "src": "https://path.to/image.jpg", "uScale": 0.5 }'
// Short hand definition, only contains source string:
'https://path.to/image.jpg'
// Full content, paintable texture is flipped in both directions
'{ "src": "https://path.to/image.jpg", "uScale": -1, "vScale": -1, "uOffset": 0, "vOffset": 0 }'
// SVG content can be used directly:
'<svg>...</svg>'
// SVG in src property works as well:
'{ "src": "<svg>...</svg>", "uScale": 0.5 }'
Static
parseParses a string of format '(x,y,z)'
with angular degrees to a Vector3
with rotation information in radians.
Static
parseParses a string of format '(x,y,z)'
or a simple number
to a Vector3
for scaling.
Static
parseParses a string of format '(x,y,z)'
to a Vector3
.
Static
stringifyGenerated using TypeDoc
This
Parameter
class defines all parameters that can be consumed and committed by a ParameterObservable. Use addParameterObserver or commitParameters to either add or commit parameters on your observable objects.