PBRBaseMaterial

Description

class PBRBaseMaterial extends PushMaterial

Constructor

new PBRBaseMaterial(name, scene)

Instantiates a new PBRMaterial instance.

     * @param name The material name

Parameters

Name Type Description
name string The material name
scene Scene The scene the material will be use in.

Members

useLogarithmicDepth : boolean

transparencyMode : Nullable<number>

Gets the current transparency mode.

Sets the transparency mode of the material.

Methods

getClassName() string

needAlphaBlending() boolean

Specifies whether or not this material should be rendered in alpha blend mode.

needAlphaBlendingForMesh(mesh) boolean

Specifies whether or not this material should be rendered in alpha blend mode for the given mesh.

Parameters

Name Type Description
mesh AbstractMesh

needAlphaTesting() boolean

Specifies whether or not this material should be rendered in alpha test mode.

getAlphaTestTexture() BaseTexture

isReadyForSubMesh(mesh, subMesh, useInstances) boolean

Parameters

Name Type Description
mesh AbstractMesh
subMesh SubMesh
optional useInstances boolean

buildUniformLayout() void

unbind() void

bindOnlyWorldMatrix(world) void

Parameters

Name Type Description
world Matrix

bindForSubMesh(world, mesh, subMesh) void

Parameters

Name Type Description
world Matrix
mesh Mesh
subMesh SubMesh

getAnimatables() IAnimatable[]

dispose(forceDisposeEffect, forceDisposeTextures) void

Parameters

Name Type Description
optional forceDisposeEffect boolean
optional forceDisposeTextures boolean