EffectCreationOptions

Options to be used when creating an effect.

Hierarchy

  • EffectCreationOptions

Index

Properties

attributes

Find examples in Playground
attributes: string[]

Atrributes that will be used in the shader.

defines

Find examples in Playground
defines: any

Define statements that will be set in the shader.

fallbacks

Find examples in Playground

Possible fallbacks for this effect to improve performance when needed.

indexParameters

Find examples in Playground
indexParameters: any

Parameters to be used with Babylons include syntax to iterate over an array (eg. {lights: 10})

maxSimultaneousLights

Find examples in Playground
maxSimultaneousLights: number

Max number of lights that can be used in the shader.

onCompiled

Find examples in Playground
onCompiled: Nullable<function>

Callback that will be called when the shader is compiled.

onError

Find examples in Playground
onError: Nullable<function>

Callback that will be called if an error occurs during shader compilation.

samplers

Find examples in Playground
samplers: string[]

Sampler texture variable names that will be set in the shader.

transformFeedbackVaryings

Find examples in Playground
transformFeedbackVaryings: Nullable<string[]>

uniformBuffersNames

Find examples in Playground
uniformBuffersNames: string[]

Uniform buffer varible names that will be set in the shader.

uniformsNames

Find examples in Playground
uniformsNames: string[]

Uniform varible names that will be set in the shader.

Generated using TypeDoc