Parcourir la source

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 il y a 1 mois
Parent
commit
a1bf661a10

+ 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: {