CLASSES
TagsA - Z

MaterialHelper

Description

class MaterialHelper

Methods

static PrepareDefinesForLights(scene, mesh, defines, maxSimultaneousLights) → boolean

Parameters

Name Type Description
scene Scene
mesh AbstractMesh
defines MaterialDefines

static PrepareUniformsAndSamplersList(uniformsList, samplersList, defines, maxSimultaneousLights) → void

Parameters

Name Type Description
uniformsList string[]
samplersList string[]
defines MaterialDefines

static HandleFallbacksForShadows(defines, fallbacks, maxSimultaneousLights) → void

Parameters

Name Type Description
defines MaterialDefines
fallbacks EffectFallbacks
optional maxSimultaneousLights number

static PrepareAttributesForBones(attribs, mesh, defines, fallbacks) → void

Parameters

Name Type Description
attribs string[]
mesh AbstractMesh
defines MaterialDefines

static PrepareAttributesForInstances(attribs, defines) → void

Parameters

Name Type Description
attribs string[]
defines MaterialDefines

static BindLightShadow(light, scene, mesh, lightIndex, effect, depthValuesAlreadySet) → boolean

Parameters

Name Type Description
light Light
scene Scene
mesh AbstractMesh
lightIndex number
effect Effect

static BindLightProperties(light, effect, lightIndex) → void

Parameters

Name Type Description
light Light
effect Effect
lightIndex number

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

Parameters

Name Type Description
scene Scene
mesh AbstractMesh
effect Effect
defines MaterialDefines

static BindFogParameters(scene, mesh, effect) → void

Parameters

Name Type Description
scene Scene
mesh AbstractMesh
effect Effect

static BindBonesParameters(mesh, effect) → void

Parameters

Name Type Description
mesh AbstractMesh
effect Effect

static BindLogDepth(defines, effect, scene) → void

Parameters

Name Type Description
defines MaterialDefines
effect Effect
scene Scene

static BindClipPlane(effect, scene) → void

Parameters

Name Type Description
effect Effect
scene Scene