瀏覽代碼

chore(playground): remove unused useRenderer import in BlenderCube

- Removed the unused `useRenderer` import from BlenderCube.vue to clean up the code.
- Updated the useControls destructuring in index.vue to remove the unused `preset` property, improving clarity and maintainability.
alvarosabu 1 月之前
父節點
當前提交
a1bf661a10
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 2
      playground/vue/src/components/BlenderCube.vue
  2. 1 1
      playground/vue/src/pages/basic/index.vue

+ 1 - 2
playground/vue/src/components/BlenderCube.vue

@@ -1,7 +1,6 @@
 <script setup lang="ts">
 import { useGLTF } from '@tresjs/cientos'
-import { dispose, useRenderer } from '@tresjs/core'
-import { useControls } from '@tresjs/leches'
+import { dispose } from '@tresjs/core'
 
 const { nodes } = await useGLTF('https://raw.githubusercontent.com/Tresjs/assets/main/models/gltf/blender-cube.glb', { draco: true })
 const model = nodes.Cube

+ 1 - 1
playground/vue/src/pages/basic/index.vue

@@ -5,7 +5,7 @@ import { TresLeches, useControls } from '@tresjs/leches'
 import { OrbitControls } from '@tresjs/cientos'
 import '@tresjs/leches/styles'
 
-const { clearColor, alpha, antialias, toneMapping, shadows, shadowMapType, preset } = useControls({
+const { clearColor, alpha, antialias, toneMapping, shadows, shadowMapType } = useControls({
   clearColor: '#82DBC5',
   alpha: true,
   toneMapping: {