|
@@ -1,8 +1,7 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
/* import { Color } from 'three' */
|
|
/* import { Color } from 'three' */
|
|
-import { useTweakPane, OrbitControls, TransformControls } from '../../cientos/src'
|
|
|
|
|
|
+import { useTweakPane, OrbitControls, Text3D } from '../../cientos/src'
|
|
/* import TestSphere from '/@/components/TestSphere.vue' */
|
|
/* import TestSphere from '/@/components/TestSphere.vue' */
|
|
-import Text3D from '/@/components/Text3D.vue'
|
|
|
|
/* import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
|
|
/* import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
|
|
import { useTres, useCatalogue } from '/@/core' */
|
|
import { useTres, useCatalogue } from '/@/core' */
|
|
|
|
|
|
@@ -29,7 +28,11 @@ useTweakPane()
|
|
<TresScene>
|
|
<TresScene>
|
|
<TresAmbientLight :intensity="0.5" />
|
|
<TresAmbientLight :intensity="0.5" />
|
|
<!-- <TresOrbitControls v-if="state.renderer" :args="[state.camera, state.renderer?.domElement]" /> -->
|
|
<!-- <TresOrbitControls v-if="state.renderer" :args="[state.camera, state.renderer?.domElement]" /> -->
|
|
- <Text3D />
|
|
|
|
|
|
+ <Text3D font="https://raw.githubusercontent.com/Tresjs/assets/main/fonts/FiraCodeRegular.json">
|
|
|
|
+ <TresMeshMatcapMaterial
|
|
|
|
+ matcap="https://raw.githubusercontent.com/Tresjs/assets/main/textures/matcaps/7.png"
|
|
|
|
+ />
|
|
|
|
+ </Text3D>
|
|
<!-- <TestSphere /> -->
|
|
<!-- <TestSphere /> -->
|
|
<TresAxesHelper :args="[1]" :visible="false" />
|
|
<TresAxesHelper :args="[1]" :visible="false" />
|
|
<TresDirectionalLight :position="[0, 2, 4]" :intensity="2" cast-shadow />
|
|
<TresDirectionalLight :position="[0, 2, 4]" :intensity="2" cast-shadow />
|