From e31900d467f5dcdd8c0de40ff567754d7931df9d Mon Sep 17 00:00:00 2001 From: Sander Moolin Date: Mon, 15 Mar 2021 11:46:09 -0400 Subject: [PATCH] Change `id` to `name` in CubeTexture --- src/materials/CubeTexture.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/materials/CubeTexture.js b/src/materials/CubeTexture.js index 678a4b2..31ddd0e 100644 --- a/src/materials/CubeTexture.js +++ b/src/materials/CubeTexture.js @@ -13,7 +13,7 @@ export default { onLoad: Function, onProgress: Function, onError: Function, - id: { type: String, default: 'envMap' }, + name: { type: String, default: 'envMap' }, refraction: Boolean, // todo: remove ? refractionRatio: { type: Number, default: 0.98 }, @@ -24,7 +24,7 @@ export default { watch(() => this.urls, this.refreshTexture); }, unmounted() { - this.material.setTexture(null, this.id); + this.material.setTexture(null, this.name); this.texture.dispose(); }, methods: { @@ -35,7 +35,7 @@ export default { }, refreshTexture() { this.createTexture(); - this.material.setTexture(this.texture, this.id); + this.material.setTexture(this.texture, this.name); if (this.refraction) { this.texture.mapping = CubeRefractionMapping; this.material.setProp('refractionRatio', this.refractionRatio);