Skip to content

useTexture

加载单张纹理,响应式返回结果。

用法

ts
import { useTexture } from '@threeuse/core'

const { texture, isLoading, load } = useTexture()
await load('/textures/diffuse.jpg')
material.map = texture.value

Released under the MIT License.