Light class abstract

class Light

Inheritance
Implementers
Annotations
  • @JS()

Constructors

Light()

Properties

animations List<Animation>
getter/setter pairinherited
behaviors List<Behavior<Node>>
no setterinherited
diffuse Color3
getter/setter pair
doNotSerialize bool
getter/setter pairinherited
excludedMeshes List<AbstractMesh>
getter/setter pair
excludeWithLayerMask num
getter/setter pair
falloffType num
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pairinherited
includedOnlyMeshes List<AbstractMesh>
getter/setter pair
includeOnlyWithLayerMask num
getter/setter pair
intensity num
getter/setter pair
intensityMode num
getter/setter pair
lightmapMode num
getter/setter pair
metadata ↔ dynamic
getter/setter pairinherited
name String
getter/setter pairinherited
onDispose ← void Function()
no getterinherited
onDisposeObservable Observable<Node>
getter/setter pairinherited
onReady ↔ void Function(Node node)
getter/setter pairinherited
parent Node
getter/setter pairinherited
radius num
getter/setter pair
range num
getter/setter pair
renderPriority num
getter/setter pair
reservedDataStore ↔ dynamic
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowEnabled bool
getter/setter pair
specular Color3
getter/setter pair
state String
getter/setter pairinherited
uniqueId num
getter/setter pairinherited
worldMatrixFromCache Matrix
no setterinherited

Methods

addBehavior(Behavior<Node> behavior) Node
inherited
canAffectMesh(AbstractMesh mesh) bool
clone(String name, [Node newParent]) Light
computeWorldMatrix([bool force]) Matrix
inherited
createAnimationRange(String name, num from, num to) → void
inherited
deleteAnimationRange(String name, [bool deleteFrames]) → void
inherited
dispose([bool doNotRecurse, bool disposeMaterialAndTextures]) → void
override
getAbsolutePosition() Vector3
getAnimationByName(String name) Animation
inherited
getBehaviorByName(String name) Behavior<Node>
inherited
getChildMeshes([bool directDescendantsOnly, bool predicate(Node node)]) List<AbstractMesh>
inherited
getChildren([bool predicate(Node node), bool directDescendantsOnly]) List<Node>
inherited
getClassName() String
override
getDescendants([bool directDescendantsOnly, bool predicate(Node node)]) List<Node>
inherited
getEngine() Engine
inherited
getScaledIntensity() num
getScene() Scene
inherited
getShadowGenerator() IShadowGenerator
getTypeID() num
getWorldMatrix() Matrix
inherited
isDescendantOf(Node ancestor) bool
inherited
isDisposed() bool
inherited
isEnabled([bool checkAncestors]) bool
inherited
isReady([bool completeCheck]) bool
inherited
isSynchronized() bool
inherited
isSynchronizedWithParent() bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareLightSpecificDefines(dynamic defines, num lightIndex) → void
removeBehavior(Behavior<Node> behavior) Node
inherited
serialize() → dynamic
serializeAnimationRanges() → dynamic
inherited
setEnabled(bool value) → void
override
toString([bool fullDetails]) String
A string representation of this object.
override
transferTexturesToEffect(Effect effect, String lightIndex) Light
transferToEffect(Effect effect, String lightIndex) Light
transferToNodeMaterialEffect(Effect effect, String lightDataUniformName) Light
updateCache([bool force]) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

FALLOFF_DEFAULT num
no setter
FALLOFF_GLTF num
no setter
FALLOFF_PHYSICAL num
no setter
FALLOFF_STANDARD num
no setter
INTENSITYMODE_AUTOMATIC num
no setter
INTENSITYMODE_ILLUMINANCE num
no setter
INTENSITYMODE_LUMINANCE num
no setter
INTENSITYMODE_LUMINOUSINTENSITY num
no setter
INTENSITYMODE_LUMINOUSPOWER num
no setter
LIGHTMAP_DEFAULT num
no setter
LIGHTMAP_SHADOWSONLY num
no setter
LIGHTMAP_SPECULAR num
no setter
LIGHTTYPEID_DIRECTIONALLIGHT num
no setter
LIGHTTYPEID_HEMISPHERICLIGHT num
no setter
LIGHTTYPEID_POINTLIGHT num
no setter
LIGHTTYPEID_SPOTLIGHT num
no setter

Static Methods

CompareLightsPriority(Light a, Light b) num
GetConstructorFromName(num type, String name, Scene scene) Light Function()
Parse(dynamic parsedLight, Scene scene) Light