|
@@ -1,11 +1,9 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { App, onMounted, onUnmounted, ref, watch } from 'vue'
|
|
import { App, onMounted, onUnmounted, ref, watch } from 'vue'
|
|
import { PerspectiveCamera, Scene } from 'three'
|
|
import { PerspectiveCamera, Scene } from 'three'
|
|
-import { ColorSpace, ShadowMapType, ToneMapping } from 'three'
|
|
|
|
|
|
+
|
|
import { createTres } from '../core/renderer'
|
|
import { createTres } from '../core/renderer'
|
|
-import { TresCamera } from '../types/'
|
|
|
|
import {
|
|
import {
|
|
- CameraType,
|
|
|
|
TRES_CONTEXT_KEY,
|
|
TRES_CONTEXT_KEY,
|
|
useLogger,
|
|
useLogger,
|
|
useCamera,
|
|
useCamera,
|
|
@@ -15,11 +13,13 @@ import {
|
|
usePointerEventHandler,
|
|
usePointerEventHandler,
|
|
} from '../composables'
|
|
} from '../composables'
|
|
import { extend } from '../core/catalogue'
|
|
import { extend } from '../core/catalogue'
|
|
-import { type RendererPresetsType } from '../composables/useRenderer/const'
|
|
|
|
import { OBJECT_3D_USER_DATA_KEYS } from '../keys'
|
|
import { OBJECT_3D_USER_DATA_KEYS } from '../keys'
|
|
|
|
|
|
|
|
+import type { TresCamera } from '../types/'
|
|
|
|
+import type { RendererPresetsType } from '../composables/useRenderer/const'
|
|
|
|
+import type { ColorSpace, ShadowMapType, ToneMapping } from 'three'
|
|
|
|
|
|
-export type TresSceneProps = {
|
|
|
|
|
|
+export interface TresSceneProps {
|
|
shadows?: boolean
|
|
shadows?: boolean
|
|
shadowMapType?: ShadowMapType
|
|
shadowMapType?: ShadowMapType
|
|
physicallyCorrectLights?: boolean
|
|
physicallyCorrectLights?: boolean
|