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