Skip to content

Commit

Permalink
feat: remove runtime wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Sep 28, 2023
1 parent 9c75d02 commit 60db258
Show file tree
Hide file tree
Showing 8 changed files with 2,370 additions and 854 deletions.
18 changes: 9 additions & 9 deletions package.json
Expand Up @@ -33,9 +33,9 @@
"test:watch": "vitest watch"
},
"dependencies": {
"@nuxt/kit": "^3.7.1",
"@tresjs/cientos": "3.3.0",
"@tresjs/core": "3.2.2",
"@nuxt/kit": "^3.7.4",
"@tresjs/cientos": "3.4.1",
"@tresjs/core": "3.2.3",
"@types/three": "^0.156.0",
"mlly": "^1.4.2",
"pkg-types": "^1.0.3",
Expand All @@ -45,16 +45,16 @@
"devDependencies": {
"@alvarosabu/eslint-config-vue": "^0.4.0",
"@nuxt/eslint-config": "^0.2.0",
"@nuxt/module-builder": "^0.5.1",
"@nuxt/schema": "^3.7.1",
"@nuxt/test-utils": "^3.7.1",
"@release-it/conventional-changelog": "^7.0.1",
"@nuxt/module-builder": "^0.5.2",
"@nuxt/schema": "^3.7.4",
"@nuxt/test-utils": "^3.7.4",
"@release-it/conventional-changelog": "^7.0.2",
"@types/node": "^20.6.0",
"changelogen": "^0.5.5",
"eslint": "^8.49.0",
"nuxt": "^3.7.1",
"nuxt": "^3.7.4",
"playwright": "^1.37.1",
"release-it": "^16.1.5",
"release-it": "^16.2.1",
"vitest": "^0.34.4"
}
}
9 changes: 7 additions & 2 deletions playground/app.vue
@@ -1,21 +1,26 @@
<script setup lang="ts">
import { BasicShadowMap, NoToneMapping, SRGBColorSpace } from 'three'
const gl = {
const gl = reactive({
clearColor: '#18181B',
shadows: true,
alpha: false,
shadowMapType: BasicShadowMap,
outputColorSpace: SRGBColorSpace,
toneMapping: NoToneMapping,
}
})
/* const bloomParams = reactive({
luminanceThreshold: 0.2,
luminanceSmoothing: 0.3,
mipmapBlur: true,
intensity: 0.5,
}) */
const showScene = ref(false)
setTimeout(() => {
showScene.value = true
}, 5000)
</script>

<template>
Expand Down
1 change: 1 addition & 0 deletions playground/nuxt.config.ts
@@ -1,5 +1,6 @@
export default defineNuxtConfig({
modules: ['../src/module'],
devtools: { enabled: true },
tres: {
// for testing purposes, and so we test both deduplication + auto-detection capabilities
modules: ['@tresjs/cientos'],
Expand Down
1 change: 1 addition & 0 deletions playground/package.json
Expand Up @@ -8,6 +8,7 @@
"generate": "nuxi generate"
},
"devDependencies": {
"@nuxt/devtools": "^0.8.5",
"@tresjs/cientos": "^3.3.0",
"@tresjs/post-processing": "^0.4.0",
"nuxt": "^3.7.1",
Expand Down

0 comments on commit 60db258

Please sign in to comment.