Instalation
WARNING
You’re browsing the documentation for TresJS v1. If you’re looking for the documentation for v2, please visit https://tresjs.org
Learn how to install TresJS
bash
pnpm add three @tresjs/core@1.8.1 -D
bash
npm install three @tresjs/core@1.8.1 -D
bash
yarn add three @tresjs/core@1.8.1 -D
Better use with Vue 3.x and composition API
Getting started
You can install TresJS as any other Vue plugin
ts
import { createApp } from 'vue'
import App from './App.vue'
import Tres from '@tresjs/core'
export const app = createApp(App)
app.use(Tres)
app.mount('#app')
Nuxt
Soon.