CLASSES
TagsA - Z

MaterialHelper

Description

class MaterialHelper

Methods

static PrepareDefinesForMergedUV(texture, defines, key) void

Parameters

Name Type Description
texture BaseTexture
defines any
key string

static BindTextureMatrix(texture, uniformBuffer, key) void

Parameters

Name Type Description
texture BaseTexture
uniformBuffer UniformBuffer
key string

static PrepareDefinesForMisc(mesh, scene, useLogarithmicDepth, pointsCloud, fogEnabled, defines) void

Parameters

Name Type Description
mesh AbstractMesh
scene Scene
useLogarithmicDepth boolean
pointsCloud boolean
fogEnabled boolean

static PrepareDefinesForFrameBoundValues(scene, engine, defines, useInstances, forceAlphaTest) void

Parameters

Name Type Description
scene Scene
engine Engine
defines any
useInstances boolean

static PrepareDefinesForAttributes(mesh, defines, useVertexColor, useBones, useMorphTargets) boolean

Parameters

Name Type Description
mesh AbstractMesh
defines any
useVertexColor boolean
useBones boolean

static PrepareDefinesForLights(scene, mesh, defines, specularSupported, maxSimultaneousLights, disableLighting) boolean

Parameters

Name Type Description
scene Scene
mesh AbstractMesh
defines any
specularSupported boolean
optional maxSimultaneousLights number

static PrepareUniformsAndSamplersList(uniformsListOrOptions, EffectCreationOptions, samplersList, defines, maxSimultaneousLights) void

Parameters

Name Type Description
uniformsListOrOptions string[] or EffectCreationOptions
optional samplersList string[]
optional defines any

static HandleFallbacksForShadows(defines, fallbacks, maxSimultaneousLights) void

Parameters

Name Type Description
defines any
fallbacks EffectFallbacks
optional maxSimultaneousLights number

static PrepareAttributesForMorphTargets(attribs, mesh, defines) void

Parameters

Name Type Description
attribs string[]
mesh AbstractMesh
defines any

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

Parameters

Name Type Description
attribs string[]
mesh AbstractMesh
defines any

static PrepareAttributesForInstances(attribs, defines) void

Parameters

Name Type Description
attribs string[]
defines any

static BindLightShadow(light, scene, mesh, lightIndex, effect) void

Parameters

Name Type Description
light Light
scene Scene
mesh AbstractMesh
lightIndex string

static BindLightProperties(light, effect, lightIndex) void

Parameters

Name Type Description
light Light
effect Effect
lightIndex number

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

Parameters

Name Type Description
scene Scene
mesh AbstractMesh
effect Effect
defines any
optional maxSimultaneousLights number

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 BindMorphTargetParameters(abstractMesh, effect) void

Parameters

Name Type Description
abstractMesh AbstractMesh
effect Effect

static BindLogDepth(defines, effect, scene) void

Parameters

Name Type Description
defines any
effect Effect
scene Scene

static BindClipPlane(effect, scene) void

Parameters

Name Type Description
effect Effect
scene Scene