diff --git a/docs/.vitepress/theme/components/BlenderCube.vue b/docs/.vitepress/theme/components/BlenderCube.vue
index 5502950e..9a4d1063 100644
--- a/docs/.vitepress/theme/components/BlenderCube.vue
+++ b/docs/.vitepress/theme/components/BlenderCube.vue
@@ -1,17 +1,18 @@
-
+
diff --git a/docs/.vitepress/theme/components/Ducky.vue b/docs/.vitepress/theme/components/Ducky.vue
index 8de0f1a0..542555ef 100644
--- a/docs/.vitepress/theme/components/Ducky.vue
+++ b/docs/.vitepress/theme/components/Ducky.vue
@@ -1,10 +1,20 @@
-
+
diff --git a/docs/.vitepress/theme/components/pmdrs/DepthOfFieldDemo.vue b/docs/.vitepress/theme/components/pmdrs/DepthOfFieldDemo.vue
index 7f9162f8..a0b022c1 100644
--- a/docs/.vitepress/theme/components/pmdrs/DepthOfFieldDemo.vue
+++ b/docs/.vitepress/theme/components/pmdrs/DepthOfFieldDemo.vue
@@ -40,17 +40,13 @@ const effectParams = ref({
:position="[-5, 0.5, -10]"
:scale="0.5"
>
-
-
-
+
-
-
-
+
@@ -44,7 +44,15 @@ const { scene } = await useGLTF('https://raw.githubusercontent.com/Tresjs/assets
/>
-
+
{
-
-
+
+
-
-
-
+
diff --git a/docs/components.d.ts b/docs/components.d.ts
index 29cb3605..afed0110 100644
--- a/docs/components.d.ts
+++ b/docs/components.d.ts
@@ -2,6 +2,7 @@
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
+// biome-ignore lint: disable
export {}
/* prettier-ignore */
diff --git a/docs/package.json b/docs/package.json
index da956453..3f145579 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -9,8 +9,8 @@
"preview": "vitepress preview"
},
"dependencies": {
- "@tresjs/cientos": "^4.1.0",
- "@tresjs/core": "^4.3.2",
+ "@tresjs/cientos": "5.0.0-next.2",
+ "@tresjs/core": "5.0.0-next.3",
"@tresjs/post-processing": "workspace:^",
"gsap": "^3.12.7"
},
diff --git a/package.json b/package.json
index c06acf8f..7fce3cca 100644
--- a/package.json
+++ b/package.json
@@ -52,7 +52,7 @@
"docs:preview": "vitepress preview"
},
"peerDependencies": {
- "@tresjs/core": ">=4.0",
+ "@tresjs/core": ">=5.0",
"three": ">=0.169",
"vue": ">=3.4"
},
diff --git a/playground/public/nuxt-stones/package.json b/playground/public/nuxt-stones/package.json
deleted file mode 100644
index abd32e43..00000000
--- a/playground/public/nuxt-stones/package.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "name": "docs",
- "type": "module",
- "version": "0.0.0",
- "private": true,
- "scripts": {
- "dev": "vitepress dev",
- "build": "vitepress build",
- "preview": "vitepress preview"
- },
- "dependencies": {
- "@tresjs/cientos": "^3.0.1",
- "@tresjs/core": "^3.2.2",
- "@tresjs/post-processing": "workspace:^",
- "gsap": "^3.11.5"
- },
- "devDependencies": {
- "unocss": "^0.52.3",
- "unplugin-vue-components": "^0.24.1",
- "vite-svg-loader": "^4.0.0",
- "vitepress": "1.0.0-beta.1"
- }
-}
diff --git a/playground/src/components/BlenderCube.vue b/playground/src/components/BlenderCube.vue
index d7b2e695..9a4d1063 100644
--- a/playground/src/components/BlenderCube.vue
+++ b/playground/src/components/BlenderCube.vue
@@ -1,17 +1,18 @@
-
+
diff --git a/playground/src/components/Ducky.vue b/playground/src/components/Ducky.vue
index 4b24ddf6..542555ef 100644
--- a/playground/src/components/Ducky.vue
+++ b/playground/src/components/Ducky.vue
@@ -1,16 +1,20 @@
-
+
diff --git a/playground/src/pages/postprocessing/on-demand.vue b/playground/src/pages/postprocessing/on-demand.vue
index 7a679399..afe9db03 100644
--- a/playground/src/pages/postprocessing/on-demand.vue
+++ b/playground/src/pages/postprocessing/on-demand.vue
@@ -13,10 +13,6 @@ function onRender() {
}
const canvas = ref>()
-
-function onControlChange() {
- canvas.value?.context?.invalidate()
-}
@@ -30,7 +26,7 @@ function onControlChange() {
:position="[5, 5, 5]"
:look-at="[0, 0, 0]"
/>
-
+
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 173494d5..ac118e7e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -91,11 +91,11 @@ importers:
docs:
dependencies:
'@tresjs/cientos':
- specifier: ^4.1.0
- version: 4.3.1(@tresjs/core@4.3.6(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3)))(@types/three@0.172.0)(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3))
+ specifier: 5.0.0-next.2
+ version: 5.0.0-next.2(@tresjs/core@5.0.0-next.3(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3)))(@types/three@0.172.0)(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3))
'@tresjs/core':
- specifier: ^4.3.2
- version: 4.3.6(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3))
+ specifier: 5.0.0-next.3
+ version: 5.0.0-next.3(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3))
'@tresjs/post-processing':
specifier: workspace:^
version: link:..
@@ -1202,8 +1202,8 @@ packages:
'@tootallnate/quickjs-emscripten@0.23.0':
resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==}
- '@tresjs/cientos@4.3.1':
- resolution: {integrity: sha512-3qp6lEtMrFdhxDuASP1Sz/hEi8+xcEpM6Vd6uDJysCh4uRAzyJLlBSbPoR7gVjN12wrhwJIF1AfYEFz/Vhz5ZQ==}
+ '@tresjs/cientos@5.0.0-next.2':
+ resolution: {integrity: sha512-e0u0gkPGYlj5sNNwM9BrRxxVU6Gz44oj9cFljC/2aS2AhewkNOjL5dzaJZo/s08K3L8N8DPuvGUSYEdU8hyx+g==}
peerDependencies:
'@tresjs/core': '>=4.2.1'
three: '>=0.133'
@@ -1216,8 +1216,8 @@ packages:
three: '>=0.133'
vue: '>=3.3'
- '@tresjs/core@4.3.6':
- resolution: {integrity: sha512-CCk4+jwbiTl7Hj3REZqweglUQQdA3cF29TqJ4dEWunaBPyfsAGLTlJExK5lGIS10ptJkr8DqPvHQT41iTIb0Yg==}
+ '@tresjs/core@5.0.0-next.3':
+ resolution: {integrity: sha512-YuCnowKeVF1C9/lHJRkSoZN45Zy4N7saO2n2YJbaLVrzN4cBlonuDyH9qyAm9mgGQ1HZ8vIsDN6t/ANQ2iNXZw==}
peerDependencies:
three: '>=0.133'
vue: '>=3.4'
@@ -5536,9 +5536,9 @@ snapshots:
'@tootallnate/quickjs-emscripten@0.23.0': {}
- '@tresjs/cientos@4.3.1(@tresjs/core@4.3.6(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3)))(@types/three@0.172.0)(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3))':
+ '@tresjs/cientos@5.0.0-next.2(@tresjs/core@5.0.0-next.3(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3)))(@types/three@0.172.0)(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3))':
dependencies:
- '@tresjs/core': 4.3.6(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3))
+ '@tresjs/core': 5.0.0-next.3(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3))
'@vueuse/core': 12.8.2(typescript@5.8.3)
camera-controls: 2.10.1(three@0.173.0)
stats-gl: 2.4.2(@types/three@0.172.0)(three@0.173.0)
@@ -5570,10 +5570,11 @@ snapshots:
- react
- typescript
- '@tresjs/core@4.3.6(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3))':
+ '@tresjs/core@5.0.0-next.3(three@0.173.0)(typescript@5.8.3)(vue@3.5.17(typescript@5.8.3))':
dependencies:
'@alvarosabu/utils': 3.2.0
- '@vue/devtools-api': 6.6.4
+ '@pmndrs/pointer-events': 6.6.17
+ '@vue/devtools-api': 7.7.7
'@vueuse/core': 12.8.2(typescript@5.8.3)
three: 0.173.0
vue: 3.5.17(typescript@5.8.3)
diff --git a/src/core/pmndrs/DepthOfFieldPmndrs.vue b/src/core/pmndrs/DepthOfFieldPmndrs.vue
index 2fad4f59..5c6a3c53 100644
--- a/src/core/pmndrs/DepthOfFieldPmndrs.vue
+++ b/src/core/pmndrs/DepthOfFieldPmndrs.vue
@@ -1,6 +1,6 @@