@tresjs/nuxt
Een officiele Nuxt module voor TresJS is hier 🎉.
Repository is hier
::: code-group
pnpm add three @tresjs/nuxt
npm install three @tresjs/nuxt
yarn add three @tresjs/nuxt
:::
TresCanvas
client only, je hoeft niet .client
toe te voegen aan de component naam of <ClientOnly />
Voeg @tresjs/nuxt
toe aan de modules
sectie van nuxt.config.ts
export default defineNuxtConfig({
modules: ['@tresjs/nuxt'],
})
Dat is alles! Je kan nu @tresjs/nuxt
gebruiken in je Nuxt app ✨
Als u elk ander pakket uit het TresJS-ecosysteem wilt gebruiken, kunt u de pakketten die u wilt gebruiken installeren en deze worden automatisch geïmporteerd door de module 🧙🏼♂️.
Package | Versie |
---|---|
Cientos | |
Post-processing |
# Using pnpm
pnpm add @tresjs/cientos @tresjs/post-processing