Skip to content

TextureBinding

Defined in: packages/declarative-hex-worlds/src/texture-binding/texture-binding.ts:15

A texture bound to a model, optionally scoped to specific meshes/materials by name.

readonly assetId: string

Defined in: packages/declarative-hex-worlds/src/texture-binding/texture-binding.ts:17

Asset id of the model these textures apply to.


readonly optional normalUrl?: string

Defined in: packages/declarative-hex-worlds/src/texture-binding/texture-binding.ts:26

Optional normal-map URL applied alongside the base-color map.


readonly optional targets?: readonly string[]

Defined in: packages/declarative-hex-worlds/src/texture-binding/texture-binding.ts:24

Names of the meshes/materials the texture applies to. When omitted, the texture is applied to EVERY mesh material in the model.


readonly textureUrl: string

Defined in: packages/declarative-hex-worlds/src/texture-binding/texture-binding.ts:19

URL of the texture to apply as the base-color map.