mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-04-27 17:41:21 +00:00
refactor: remove theatre
This commit is contained in:
parent
29b9a8aeb6
commit
e51f2d463d
2 changed files with 0 additions and 41 deletions
|
@ -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 — theatre</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
<main class="container h-screen w-full">
|
|
||||||
<Canvas>
|
|
||||||
<Theatre>
|
|
||||||
<Scene />
|
|
||||||
<T.AxesHelper />
|
|
||||||
<T.GridHelper />
|
|
||||||
</Theatre>
|
|
||||||
</Canvas>
|
|
||||||
</main>
|
|
|
@ -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>
|
|
Loading…
Reference in a new issue