refactor: remove theatre

This commit is contained in:
Bart van der Braak 2023-08-18 10:42:05 +02:00
parent 29b9a8aeb6
commit e51f2d463d
2 changed files with 0 additions and 41 deletions

View file

@ -1,20 +0,0 @@
<script lang="ts">
import { Canvas } from '@threlte/core';
import Scene from '../toolbox/Scene.svelte';
import { Theatre } from '@threlte/theatre';
import { T } from '@threlte/core';
</script>
<svelte:head>
<title>hellob.art &mdash; theatre</title>
</svelte:head>
<main class="container h-screen w-full">
<Canvas>
<Theatre>
<Scene />
<T.AxesHelper />
<T.GridHelper />
</Theatre>
</Canvas>
</main>

View file

@ -1,21 +0,0 @@
<script>
import { T, useFrame } from '@threlte/core';
import { OrbitControls } from '@threlte/extras';
import Warp from '../toolbox/models/Warp.svelte';
let githubRotation = 0;
useFrame((state, delta) => {
githubRotation += 0.1 * delta;
});
</script>
<T.PerspectiveCamera position={[0, 5, 10]} makeDefault>
<OrbitControls target.y={1.5} />
</T.PerspectiveCamera>
<T.DirectionalLight intensity={0.5} position.x={2} position.y={3} />
<T.AmbientLight intensity={0.9} />
<Warp rotation.y={githubRotation} />
<T.AxesHelper></T.AxesHelper>
<T.GridHelper></T.GridHelper>