Skip to content

Commit 215baa4

Browse files
Tinooooalvarosabu
andauthored
chore(deps): dependency updates in nuxt playground (#135)
* updated dependencies * cleanup * cleanup * lint fixes --------- Co-authored-by: Tino Koch <> Co-authored-by: Alvaro Saburido <[email protected]>
1 parent bd6ff06 commit 215baa4

File tree

4 files changed

+3566
-320
lines changed

4 files changed

+3566
-320
lines changed

playground-nuxt/nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ export default defineNuxtConfig({
1515
dedupe: ['three', '@tresjs/core', '@vueuse/core'],
1616
},
1717
},
18+
compatibilityDate: '2024-10-13',
1819
})

playground-nuxt/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
"postinstall": "nuxt prepare"
1111
},
1212
"dependencies": {
13-
"@tresjs/cientos": "^3.5.1",
14-
"@tresjs/nuxt": "^1.2.2",
15-
"@types/three": "^0.152.1"
13+
"@tresjs/cientos": "^4.0.3",
14+
"@tresjs/nuxt": "^3.0.7",
15+
"@tresjs/post-processing": "^0.7.1",
16+
"@types/three": "^0.169.0"
1617
},
1718
"devDependencies": {
1819
"@nuxt/devtools": "latest",

playground-nuxt/pages/index.vue

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<script setup lang="ts">
2-
import { Bloom, EffectComposer } from '@tresjs/post-processing/pmndrs'
3-
import { BlendFunction } from 'postprocessing'
4-
import { BasicShadowMap, Color, NoToneMapping, SRGBColorSpace } from 'three'
5-
import { reactive } from 'vue'
2+
import { EffectComposer, Glitch } from '@tresjs/post-processing/pmndrs'
3+
import { BasicShadowMap, NoToneMapping, SRGBColorSpace } from 'three'
64
75
const gl = {
86
clearColor: '#82DBC5',
@@ -12,13 +10,6 @@ const gl = {
1210
outputColorSpace: SRGBColorSpace,
1311
toneMapping: NoToneMapping,
1412
}
15-
16-
const bloomParams = reactive({
17-
luminanceThreshold: 0.2,
18-
luminanceSmoothing: 0.3,
19-
intensity: 4.0,
20-
blendFunction: BlendFunction.ADD,
21-
})
2213
</script>
2314

2415
<template>
@@ -30,17 +21,13 @@ const bloomParams = reactive({
3021
<OrbitControls />
3122
<TresMesh>
3223
<TresSphereGeometry :args="[2, 32, 32]" />
33-
<TresMeshStandardMaterial
34-
color="hotpink"
35-
:emissive="new Color('hotpink')"
36-
:emissive-intensity="9"
37-
/>
24+
<TresMeshNormalMaterial />
3825
</TresMesh>
3926
<TresGridHelper />
4027
<TresAmbientLight :intensity="1" />
4128
<Suspense>
4229
<EffectComposer>
43-
<Bloom v-bind="bloomParams" />
30+
<Glitch />
4431
</EffectComposer>
4532
</Suspense>
4633
</TresCanvas>

0 commit comments

Comments
 (0)