Skip to content

Commit

Permalink
feat: update to v4, useLoop and remove disable render
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed May 19, 2024
1 parent 70ef83c commit 544fb39
Show file tree
Hide file tree
Showing 17 changed files with 1,134 additions and 172 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/components/OutlineDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ useRouteDisposal(effectComposer)
<TresLeches />
<TresCanvas
v-bind="gl"
:disable-render="true"

>
<TresPerspectiveCamera
:position="[1, 3, 3]"
Expand Down
2 changes: 1 addition & 1 deletion docs/.vitepress/theme/components/PixelationDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { effectComposer } = useRouteDisposal()
clear-color="#121212"
:alpha="false"
:shadows="true"
:disable-render="true"

>
<TresPerspectiveCamera
:position="[3, 2, 4]"
Expand Down
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ export default tresLintConfig({
rules: {
'style/max-statements-per-line': 'off',
'jsdoc/check-alignment': 'off',
'vue/valid-template-root': 'off',
},
})
2 changes: 1 addition & 1 deletion playground/components.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
export {}

/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
BlenderCube: typeof import('./src/components/BlenderCube.vue')['default']
Expand Down
14 changes: 7 additions & 7 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"preview": "vite preview"
},
"dependencies": {
"@tresjs/cientos": "^3.6.0",
"@tresjs/core": "3.5.1",
"vue-router": "^4.2.5"
"@tresjs/cientos": "^3.9.0",
"@tresjs/core": "4.0.0-rc.1",
"vue-router": "^4.3.2"
},
"devDependencies": {
"@tresjs/leches": "^0.14.0",
"@types/three": "^0.159.0",
"unplugin-auto-import": "^0.17.2",
"unplugin-vue-components": "^0.26.0",
"vite-plugin-qrcode": "^0.2.2"
"@types/three": "^0.164.0",
"unplugin-auto-import": "^0.17.6",
"unplugin-vue-components": "^0.27.0",
"vite-plugin-qrcode": "^0.2.3"
}
}
1 change: 0 additions & 1 deletion playground/src/pages/bloom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ onMounted(() => {
<TresLeches />
<TresCanvas
v-bind="gl"
:disable-render="true"
>
<TresPerspectiveCamera
:position="[5, 5, 5]"
Expand Down
1 change: 0 additions & 1 deletion playground/src/pages/glitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ pane.addInput(glitchParams, 'dtSize', { min: 1, max: 64, step: 1 }) */
<TresLeches />
<TresCanvas
v-bind="gl"
:disable-render="true"
>
<TresPerspectiveCamera
:position="[5, 5, 5]"
Expand Down
1 change: 0 additions & 1 deletion playground/src/pages/outline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const { edgeStrength, pulseSpeed, visibleEdgeColor, blur, kernelSize } = useCont
<TresLeches />
<TresCanvas
v-bind="gl"
:disable-render="true"
>
<TresPerspectiveCamera
:position="[1, 3, 3]"
Expand Down
Loading

0 comments on commit 544fb39

Please sign in to comment.