|
@@ -2,8 +2,9 @@
|
|
|
import { TresCanvas } from '@tresjs/core'
|
|
|
import { BasicShadowMap, SRGBColorSpace, NoToneMapping } from 'three'
|
|
|
import { OrbitControls } from '@tresjs/cientos'
|
|
|
-import Text3D from '../../components/Text3D.vue'
|
|
|
+import { TresLeches, useControls} from '@tresjs/leches'
|
|
|
|
|
|
+import '@tresjs/leches/styles'
|
|
|
const gl = {
|
|
|
clearColor: '#82DBC5',
|
|
|
shadows: true,
|
|
@@ -12,14 +13,19 @@ const gl = {
|
|
|
outputColorSpace: SRGBColorSpace,
|
|
|
toneMapping: NoToneMapping,
|
|
|
}
|
|
|
+
|
|
|
+const { isVisible } = useControls({
|
|
|
+ isVisible: true,
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
+ <TresLeches />
|
|
|
<TresCanvas v-bind="gl">
|
|
|
<TresPerspectiveCamera :position="[3, 3, 3]" />
|
|
|
<OrbitControls />
|
|
|
<Suspense>
|
|
|
- <Text3D />
|
|
|
+ <Text3D v-if="isVisible"/>
|
|
|
</Suspense>
|
|
|
<TresAmbientLight :intensity="1" />
|
|
|
</TresCanvas>
|