Material class
class Material
- Implemented types
- Implementers
- Annotations
-
- @JS()
Constructors
- Material()
- Material.args(String name, Scene scene, [bool doNotAdd])
Properties
- allowShaderHotSwapping ↔ bool
-
getter/setter pair
- alpha ↔ num
-
getter/setter pair
- alphaMode ↔ num
-
getter/setter pair
-
animations
↔ List<
Animation> -
getter/setter pairoverride
- backFaceCulling ↔ bool
-
getter/setter pair
- canRenderToMRT → bool
-
no setter
- checkReadyOnEveryCall ↔ bool
-
getter/setter pair
- checkReadyOnlyOnce ↔ bool
-
getter/setter pair
-
customShaderNameResolve
↔ String Function(String shaderName, List<
String> uniforms, List<String> uniformBuffers, List<String> samplers, dynamic defines, List<String> attributes, ICustomShaderNameResolveOptions options) -
getter/setter pair
- depthFunction ↔ num
-
getter/setter pair
- disableColorWrite ↔ bool
-
getter/setter pair
- disableDepthWrite ↔ bool
-
getter/setter pair
- doNotSerialize ↔ bool
-
getter/setter pair
- fillMode ↔ num
-
getter/setter pair
- fogEnabled ↔ bool
-
getter/setter pair
- forceDepthWrite ↔ bool
-
getter/setter pair
-
getRenderTargetTextures
↔ SmartArray<
RenderTargetTexture> Function() -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRenderTargetTextures → bool
-
no setter
- id ↔ String
-
getter/setter pair
- isFrozen → bool
-
no setter
- metadata ↔ dynamic
-
getter/setter pair
- name ↔ String
-
getter/setter pair
- needDepthPrePass ↔ bool
-
getter/setter pair
- onBind ← void Function(AbstractMesh Mesh)
-
no getter
-
onBindObservable
→ Observable<
AbstractMesh> -
no setter
- onCompiled ↔ void Function(Effect effect)
-
getter/setter pair
- onDispose ← void Function()
-
no getter
-
onDisposeObservable
↔ Observable<
Material> -
getter/setter pair
- onError ↔ void Function(Effect effect, String errors)
-
getter/setter pair
-
onUnBindObservable
→ Observable<
Material> -
no setter
- pointsCloud ↔ bool
-
getter/setter pair
- pointSize ↔ num
-
getter/setter pair
- releaseVertexArrayObject ↔ dynamic
-
getter/setter pair
- reservedDataStore ↔ dynamic
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- separateCullingPass ↔ bool
-
getter/setter pair
- shadowDepthWrapper ↔ ShadowDepthWrapper
-
getter/setter pair
- sideOrientation ↔ num
-
getter/setter pair
- state ↔ String
-
getter/setter pair
- transparencyMode ↔ num
-
getter/setter pair
- uniqueId ↔ num
-
getter/setter pair
- wireframe ↔ bool
-
getter/setter pair
- zOffset ↔ num
-
getter/setter pair
Methods
-
bind(
Matrix world, [Mesh mesh]) → void -
bindForSubMesh(
Matrix world, Mesh mesh, SubMesh subMesh) → void -
bindOnlyWorldMatrix(
Matrix world) → void -
bindView(
Effect effect) → void -
bindViewProjection(
Effect effect) → void -
clone(
String name) → Material -
dispose(
[bool forceDisposeEffect, bool forceDisposeTextures, bool notBoundToMesh]) → void -
freeze(
) → void -
getActiveTextures(
) → List< BaseTexture> -
getAlphaTestTexture(
) → BaseTexture -
getBindedMeshes(
) → List< AbstractMesh> -
getClassName(
) → String -
getEffect(
) → Effect -
getScene(
) → Scene -
hasTexture(
BaseTexture texture) → bool -
isReady(
[AbstractMesh mesh, bool useInstances]) → bool -
isReadyForSubMesh(
AbstractMesh mesh, SubMesh subMesh, [bool useInstances]) → bool -
markAsDirty(
num flag) → void -
markDirty(
) → void -
needAlphaBlending(
) → bool -
needAlphaBlendingForMesh(
AbstractMesh mesh) → bool -
needAlphaTesting(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → dynamic -
setPrePassRenderer(
PrePassRenderer prePassRenderer) → bool -
toString(
[bool fullDetails]) → String -
A string representation of this object.
override
-
unbind(
) → void -
unfreeze(
) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- AllDirtyFlag → num
-
no setter
- AttributesDirtyFlag → num
-
no setter
- ClockWiseSideOrientation → num
-
no setter
- CounterClockWiseSideOrientation → num
-
no setter
- FresnelDirtyFlag → num
-
no setter
- LightDirtyFlag → num
-
no setter
- LineListDrawMode → num
-
no setter
- LineLoopDrawMode → num
-
no setter
- LineStripDrawMode → num
-
no setter
- MATERIAL_ALPHABLEND → num
-
no setter
- MATERIAL_ALPHATEST → num
-
no setter
- MATERIAL_ALPHATESTANDBLEND → num
-
no setter
- MATERIAL_NORMALBLENDMETHOD_RNM → num
-
no setter
- MATERIAL_NORMALBLENDMETHOD_WHITEOUT → num
-
no setter
- MATERIAL_OPAQUE → num
-
no setter
- MiscDirtyFlag → num
-
no setter
- PointFillMode → num
-
no setter
- PointListDrawMode → num
-
no setter
- PrePassDirtyFlag → num
-
no setter
- TextureDirtyFlag → num
-
no setter
- TriangleFanDrawMode → num
-
no setter
- TriangleFillMode → num
-
no setter
- TriangleStripDrawMode → num
-
no setter
- WireFrameFillMode → num
-
no setter