Kaynağa Gözat

chore: fix lint

alvarosabu 11 ay önce
ebeveyn
işleme
cc5cadba52

+ 2 - 1
playground/src/pages/advanced/cientos/ContactShadowsLocal.vue

@@ -1,3 +1,4 @@
+<!-- eslint-disable no-console -->
 <script setup lang="ts">
 // The author of the original code is @mrdoob https://twitter.com/mrdoob
 // https://threejs.org/examples/?q=con#webgl_shadow_contact
@@ -6,7 +7,7 @@
 // https://github.com/pmndrs/drei/blob/master/src/core/ContactShadows.tsx#L113
 
 import type { TresColor } from '@tresjs/core'
-import { useLoop, useRenderLoop, useTresContext } from '@tresjs/core'
+import { useLoop, useTresContext } from '@tresjs/core'
 import type {
   ColorRepresentation,
   Material,

+ 0 - 36
playground/src/pages/advanced/cientos/DemoContactShadows.vue

@@ -1,6 +1,4 @@
 <script setup lang="ts">
-import { useControls } from '@tresjs/leches'
-
 import { Box, Icosahedron, Plane } from '@tresjs/cientos'
 import { useLoop } from '@tresjs/core'
 import ContactShadows from './ContactShadowsLocal.vue'
@@ -16,40 +14,6 @@ const state = reactive({
   helper: true,
 })
 
-const { blur, opacity, resolution, color, helper } = useControls({
-  blur: {
-    value: state.blur,
-    step: 0.1,
-    min: 0,
-    max: 10,
-  },
-  opacity: {
-    value: state.opacity,
-    step: 0.1,
-    min: 0,
-    max: 1,
-  },
-  resolution: {
-    value: state.resolution,
-    step: 1,
-    min: 0,
-    max: 1024,
-  },
-  color: {
-    type: 'color',
-    value: state.color,
-  },
-  helper: state.helper,
-})
-
-/* watch([blur, opacity, resolution, color, helper], () => {
-  state.blur = blur
-  state.opacity = opacity
-  state.resolution = resolution
-  state.color = color
-  state.helper = helper
-}) */
-
 const { onBeforeRender } = useLoop()
 
 onBeforeRender(() => {