Function setEffectTexture
-
setEffectTexture(
wrapper: EffectWrapper,
bindingNameOrIndex: string | number,
texture: Texture2D,
): voidParameters
- wrapper: EffectWrapper
The effect wrapper to update.
- bindingNameOrIndex: string | number
The texture binding's name or numeric index.
- texture: Texture2D
The texture to bind.
Returns void
- wrapper: EffectWrapper
Bind a texture to one of the effect's texture slots, marking the bind group dirty so it is rebuilt.