CLASSES
TagsA - Z

PBRBaseMaterial

Description

class PBRBaseMaterial extends BABYLON.Material

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

abstract : undefined

string : undefined

useLogarithmicDepth : boolean

Methods

needAlphaBlending() → boolean

needAlphaTesting() → boolean

getAlphaTestTexture() → BaseTexture

static BindLights(scene, mesh, effect, defines, useScalarInLinearSpace, maxSimultaneousLights, usePhysicalLightFalloff) → void

Parameters

Name Type Description
scene Scene
mesh AbstractMesh
effect Effect
defines MaterialDefines
useScalarInLinearSpace boolean
maxSimultaneousLights number

isReady(mesh, useInstances) → boolean

Parameters

Name Type Description
optional mesh AbstractMesh
optional useInstances boolean

buildUniformLayout() → void

unbind() → void

bindOnlyWorldMatrix(world) → void

Parameters

Name Type Description
world Matrix

bind(world, mesh) → void

Parameters

Name Type Description
world Matrix
optional mesh Mesh

getAnimatables() → IAnimatable[]

dispose(forceDisposeEffect, forceDisposeTextures) → void

Parameters

Name Type Description
optional forceDisposeEffect boolean
optional forceDisposeTextures boolean