Skip to content

Commit 615c32d

Browse files
committed
chore: update dependencies and improve rendering logic in on-demand playground example
1 parent 636b98e commit 615c32d

File tree

4 files changed

+677
-661
lines changed

4 files changed

+677
-661
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,17 @@
5252
"docs:preview": "vitepress preview"
5353
},
5454
"peerDependencies": {
55-
"@tresjs/core": ">=4.0",
55+
"@tresjs/core": ">=5.0",
5656
"three": ">=0.169",
5757
"vue": ">=3.4"
5858
},
5959
"dependencies": {
60-
"@tresjs/cientos": "5.0.0-next.2",
6160
"@vueuse/core": "^12.5.0",
6261
"postprocessing": "^6.37.2"
6362
},
6463
"devDependencies": {
6564
"@release-it/conventional-changelog": "^10.0.0",
66-
"@tresjs/core": "5.0.0-next.5",
65+
"@tresjs/core": "https://pkg.pr.new/@tresjs/core@1044",
6766
"@tresjs/eslint-config": "^1.4.0",
6867
"@tresjs/leches": "https://pkg.pr.new/@tresjs/leches@9ad0cd3",
6968
"@types/three": "^0.172.0",

playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@tresjs/cientos": "5.0.0-next.2",
13-
"@tresjs/core": "5.0.0-next.5",
13+
"@tresjs/core": "https://pkg.pr.new/@tresjs/core@a5468fc",
1414
"@tresjs/post-processing": "workspace:*",
1515
"vue-router": "^4.5.0"
1616
},

playground/src/pages/postprocessing/on-demand.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function onRender() {
1515
const canvas = ref<InstanceType<typeof TresCanvas>>()
1616
1717
function onControlChange() {
18-
canvas.value?.context?.invalidate()
18+
canvas.value?.context?.renderer.invalidate()
1919
}
2020
</script>
2121

0 commit comments

Comments
 (0)