Skip to content

Commit

Permalink
Merge branch 'main' into bugfix/67-depth-of-field-and-outline-effect-…
Browse files Browse the repository at this point in the history
…docs-are-broken-2
  • Loading branch information
alvarosabu authored Nov 4, 2024
2 parents 2b1fc4e + 51b5819 commit f90ef6e
Show file tree
Hide file tree
Showing 6 changed files with 3,567 additions and 331 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @alvarosabu
11 changes: 0 additions & 11 deletions .github/dependabot.yml

This file was deleted.

1 change: 1 addition & 0 deletions playground-nuxt/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ export default defineNuxtConfig({
dedupe: ['three', '@tresjs/core', '@vueuse/core'],
},
},
compatibilityDate: '2024-10-13',
})
7 changes: 4 additions & 3 deletions playground-nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
"postinstall": "nuxt prepare"
},
"dependencies": {
"@tresjs/cientos": "^3.5.1",
"@tresjs/nuxt": "^1.2.2",
"@types/three": "^0.152.1"
"@tresjs/cientos": "^4.0.3",
"@tresjs/nuxt": "^3.0.7",
"@tresjs/post-processing": "^0.7.1",
"@types/three": "^0.169.0"
},
"devDependencies": {
"@nuxt/devtools": "latest",
Expand Down
21 changes: 4 additions & 17 deletions playground-nuxt/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<script setup lang="ts">
import { Bloom, EffectComposer } from '@tresjs/post-processing/pmndrs'
import { BlendFunction } from 'postprocessing'
import { BasicShadowMap, Color, NoToneMapping, SRGBColorSpace } from 'three'
import { reactive } from 'vue'
import { EffectComposer, Glitch } from '@tresjs/post-processing/pmndrs'
import { BasicShadowMap, NoToneMapping, SRGBColorSpace } from 'three'
const gl = {
clearColor: '#82DBC5',
Expand All @@ -12,13 +10,6 @@ const gl = {
outputColorSpace: SRGBColorSpace,
toneMapping: NoToneMapping,
}
const bloomParams = reactive({
luminanceThreshold: 0.2,
luminanceSmoothing: 0.3,
intensity: 4.0,
blendFunction: BlendFunction.ADD,
})
</script>

<template>
Expand All @@ -30,17 +21,13 @@ const bloomParams = reactive({
<OrbitControls />
<TresMesh>
<TresSphereGeometry :args="[2, 32, 32]" />
<TresMeshStandardMaterial
color="hotpink"
:emissive="new Color('hotpink')"
:emissive-intensity="9"
/>
<TresMeshNormalMaterial />
</TresMesh>
<TresGridHelper />
<TresAmbientLight :intensity="1" />
<Suspense>
<EffectComposer>
<Bloom v-bind="bloomParams" />
<Glitch />
</EffectComposer>
</Suspense>
</TresCanvas>
Expand Down
Loading

0 comments on commit f90ef6e

Please sign in to comment.