From 74ae7137ad2286da4cce7c61217084b2bbd561c2 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Wed, 16 Feb 2022 20:27:57 +0100 Subject: [PATCH] #124 --- package.json | 4 ++-- src/core/CubeCamera.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0df1cc1..a6dbe6b 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "devDependencies": { "@rollup/plugin-replace": "^3.0.0", - "@types/three": "^0.136.0", + "@types/three": "^0.137.0", "@typescript-eslint/eslint-plugin": "^5.2.0", "@typescript-eslint/parser": "^5.2.0", "@vitejs/plugin-vue": "^2.2.0", @@ -27,7 +27,7 @@ "rollup-plugin-dts": "^4.0.0", "rollup-plugin-esbuild": "^4.1.0", "stats.js": "0.17.0", - "three": "^0.136.0", + "three": "^0.137.0", "typescript": "^4.1.5", "vite": "^2.6.13", "vue": "^3.2.20", diff --git a/src/core/CubeCamera.ts b/src/core/CubeCamera.ts index 58dbf47..3e72655 100644 --- a/src/core/CubeCamera.ts +++ b/src/core/CubeCamera.ts @@ -1,5 +1,5 @@ import { defineComponent, inject, onUnmounted, PropType } from 'vue' -import { CubeCamera, LinearMipmapLinearFilter, Mesh, RGBFormat, WebGLCubeRenderTarget } from 'three' +import { CubeCamera, LinearMipmapLinearFilter, Mesh, RGBAFormat, WebGLCubeRenderTarget } from 'three' import Object3D from './Object3D' import { RendererInjectionKey } from './Renderer' @@ -26,7 +26,7 @@ export default defineComponent({ } const renderer = rendererC.renderer, scene = rendererC.scene - const cubeRT = new WebGLCubeRenderTarget(props.cubeRTSize, { format: RGBFormat, generateMipmaps: true, minFilter: LinearMipmapLinearFilter }) + const cubeRT = new WebGLCubeRenderTarget(props.cubeRTSize, { format: RGBAFormat, generateMipmaps: true, minFilter: LinearMipmapLinearFilter }) const cubeCamera = new CubeCamera(props.cubeCameraNear, props.cubeCameraFar, cubeRT) const updateRT = () => { props.hideMeshes.forEach(m => { m.visible = false })