mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
fix texture for ShaderMaterial
This commit is contained in:
parent
2cca65c554
commit
a63c760bfc
@ -45,7 +45,7 @@ export default defineComponent({
|
||||
|
||||
this.material.setTexture(this.texture, this.name)
|
||||
if (this.material.material instanceof ShaderMaterial && this.uniform) {
|
||||
(this.material as any).uniforms[this.uniform] = { value: this.texture }
|
||||
(this.material.material).uniforms[this.uniform] = { value: this.texture }
|
||||
}
|
||||
},
|
||||
refreshTexture() {
|
||||
|
Loading…
Reference in New Issue
Block a user