applyTextureBinding
applyTextureBinding(
modelRoot,binding,texture,normalTexture?):TextureBindingResult
Defined in: packages/declarative-hex-worlds/src/three/texture-binding.ts:43
Apply a texture binding to a loaded model. Traverses modelRoot, and for every mesh
whose name is targeted by the binding (a binding with no targets matches all meshes),
sets the base-color map (and normalMap when a normal texture is given) on its
material(s). Returns how many materials were updated.
Parameters
Section titled “Parameters”modelRoot
Section titled “modelRoot”Object3D
binding
Section titled “binding”texture
Section titled “texture”Texture
normalTexture?
Section titled “normalTexture?”Texture<unknown, TextureEventMap>