-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
47 lines (41 loc) · 894 Bytes
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<script setup lang="ts">
import { BasicShadowMap, NoToneMapping, SRGBColorSpace } from "three";
const gl = {
clearColor: "#18181B",
shadows: true,
alpha: false,
shadowMapType: BasicShadowMap,
outputColorSpace: SRGBColorSpace,
toneMapping: NoToneMapping,
};
const bloomParams = reactive({
luminanceThreshold: 0.2,
luminanceSmoothing: 0.3,
mipmapBlur: true,
intensity: 0.5,
});
</script>
<template>
<div style="height: 100vh">
<TresCanvas v-bind="gl">
<TresPerspectiveCamera
:position="[-5.3, 8.3, 10.6]"
:look-at="[0, 0, 0]"
/>
<OrbitControls />
<EffectComposer :depth-buffer="true">
<Bloom v-bind="bloomParams" />
</EffectComposer>
<Suspense>
<NuxtStones />
</Suspense>
</TresCanvas>
</div>
</template>
<style>
html, body {
margin: 0;
padding: 0;
overflow: hidden;
}
</style>