1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-23 20:02:32 +08:00

fix texture for ShaderMaterial

This commit is contained in:
Kevin Levron 2021-05-13 22:03:34 +02:00
parent 2cca65c554
commit a63c760bfc

View File

@ -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() {