mirror of
https://github.com/troisjs/trois.git
synced 2024-11-23 20:02:32 +08:00
fix setTexture
This commit is contained in:
parent
9baccbd1d5
commit
2029497e11
@ -61,7 +61,7 @@ const BaseMaterial = defineComponent({
|
||||
material.needsUpdate = needsUpdate
|
||||
},
|
||||
setTexture(texture: Texture | null, key = 'map') {
|
||||
this.setProp(this, key, texture, true)
|
||||
this.setProp(this.material, key, texture, true)
|
||||
},
|
||||
},
|
||||
render() {
|
||||
|
Loading…
Reference in New Issue
Block a user