diff --git a/src/meshes/Gem.js b/src/meshes/Gem.js index 347e389..c578a05 100644 --- a/src/meshes/Gem.js +++ b/src/meshes/Gem.js @@ -30,8 +30,6 @@ export default { }, methods: { initGem() { - this.initMesh(); - const cubeRT = new WebGLCubeRenderTarget(this.cubeRTSize, { format: RGBFormat, generateMipmaps: true, minFilter: LinearMipmapLinearFilter }); this.cubeCamera = new CubeCamera(this.cubeCameraNear, this.cubeCameraFar, cubeRT); bindProp(this, 'position', this.cubeCamera.position); diff --git a/src/meshes/MirrorMesh.js b/src/meshes/MirrorMesh.js index 3d43863..97d5b97 100644 --- a/src/meshes/MirrorMesh.js +++ b/src/meshes/MirrorMesh.js @@ -25,8 +25,6 @@ export default { }, methods: { initMirrorMesh() { - this.initMesh(); - const cubeRT = new WebGLCubeRenderTarget(this.cubeRTSize, { format: RGBFormat, generateMipmaps: true, minFilter: LinearMipmapLinearFilter }); this.cubeCamera = new CubeCamera(this.cubeCameraNear, this.cubeCameraFar, cubeRT); this.$parent.add(this.cubeCamera); diff --git a/src/meshes/RefractionMesh.js b/src/meshes/RefractionMesh.js index 78e3f64..9d69e8c 100644 --- a/src/meshes/RefractionMesh.js +++ b/src/meshes/RefractionMesh.js @@ -28,8 +28,6 @@ export default { }, methods: { initMirrorMesh() { - this.initMesh(); - const cubeRT = new WebGLCubeRenderTarget(this.cubeRTSize, { mapping: CubeRefractionMapping, format: RGBFormat, generateMipmaps: true, minFilter: LinearMipmapLinearFilter }); this.cubeCamera = new CubeCamera(this.cubeCameraNear, this.cubeCameraFar, cubeRT); bindProp(this, 'position', this.cubeCamera.position);