CLASSES
TagsA - Z

MaterialHelper

Description

class MaterialHelper

Methods

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

Parameters

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

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

Parameters

Name Type Description
scene Scene
engine Engine
defines MaterialDefines

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

Parameters

Name Type Description
mesh AbstractMesh
defines MaterialDefines
useVertexColor boolean
useBones boolean

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

Parameters

Name Type Description
scene Scene
mesh AbstractMesh
defines MaterialDefines
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 MaterialDefines

static HandleFallbacksForShadows(defines, fallbacks, maxSimultaneousLights) void

Parameters

Name Type Description
defines MaterialDefines
fallbacks EffectFallbacks
optional maxSimultaneousLights number

static PrepareAttributesForMorphTargets(attribs, mesh, defines) void

Parameters

Name Type Description
attribs string[]
mesh AbstractMesh
defines MaterialDefines

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

Parameters

Name Type Description
abstractMesh 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