Skip to content

Commit

Permalink
fix texture for ShaderMaterial
Browse files Browse the repository at this point in the history
  • Loading branch information
klevron committed May 13, 2021
1 parent 2cca65c commit a63c760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/materials/Texture.ts
Expand Up @@ -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() {
Expand Down

0 comments on commit a63c760

Please sign in to comment.