暂无描述

alvarosabu a56bdf298b refactor(playground): remove unused camera imports in index.vue 1 天之前
.github dfeeabb148 chore: type checking in ci (#988) 3 周之前
.vscode 5ab25393ad chore: remove local settings 1 年之前
docs 36bcb1c0c2 refactor!: 979 move renderer logic from usetrescontextprovider to userenderer 2 (#993) 3 周之前
playground a56bdf298b refactor(playground): remove unused camera imports in index.vue 1 天之前
public 7e51db3794 docs: updated docs 2 年之前
sponsorkit c22276c6cb chore: updated sponsors image 7 月之前
src e0b11bdb79 refactor: enhance orthographic camera setup and controls 1 周之前
.eslintrc-auto-import.json 7b88bf9728 docs: correct incoherences in recipes (#618) 1 年之前
.gitattributes 8d5c1393b3 chore: include `.gitattributes` for eol (#569) 1 年之前
.gitignore e630114b35 chore: sponsorkit (#753) 10 月之前
.npmrc 286ac4ccea Hola mundo 🍩🪐 2 年之前
.release-it.json a8e0ef43b4 chore: 629 eslint flat config (#630) 1 年之前
CHANGELOG.md 90e1e94aac chore: release v5.0.0-next.0 1 月之前
CODE_OF_CONDUCT.md a8e0ef43b4 chore: 629 eslint flat config (#630) 1 年之前
CONTRIBUTING.md 3f05176436 chore: modify PnPM to Pnpm (#660) 1 年之前
LICENSE 286ac4ccea Hola mundo 🍩🪐 2 年之前
README.md d09bab4472 Update README.md (#756) 10 月之前
components.d.ts 8e52cf1935 fix: correct type exporting issues (#625) 1 年之前
composables.d.ts 8e52cf1935 fix: correct type exporting issues (#625) 1 年之前
eslint.config.js 37a613dad0 chore: clean up eslint config (#847) 7 月之前
netlify.toml 0c39acdc36 chore(netlify): configure Node.js version and disable Corepack integr… (#942) 2 月之前
package.json dfeeabb148 chore: type checking in ci (#988) 3 周之前
pnpm-lock.yaml 765b369f8e chore: update-cientos-next-for-playground-docs (#996) 3 周之前
pnpm-workspace.yaml 38f05b03d7 fix: use CubeTextureLoader correctly with array of files (#807) 8 月之前
renovate.json bbb375fb3c chore(ci): automerge renovate branches minors and patches (#819) 8 月之前
sponsorkit.config.ts c22276c6cb chore: updated sponsors image 7 月之前
tsconfig.json a8e0ef43b4 chore: 629 eslint flat config (#630) 1 年之前
tsconfig.node.json d377750b01 feat: update deps 20 12 24 (#887) 4 月之前
types.d.ts 8e52cf1935 fix: correct type exporting issues (#625) 1 年之前
utils.d.ts 8e52cf1935 fix: correct type exporting issues (#625) 1 年之前
vite.config.ts 96a96f48a4 feat!: update package.json and vite.config.ts for build configuration (#960) 1 月之前

README.md

repo-banner

npm package npm downloads discord chat netlify status

TresJS @tresjs/core

Declarative ThreeJS using Vue Components

  • 💡 Build 3D scene as they were Vue components
  • ⚡️ Powered by Vite
  • 🥰 It brings all the updated features of ThreeJS right away regardless the version
  • 🦾 Fully Typed

Tres (Spanish word for "three", pronounced /tres/ ) is a way of creating ThreeJS scenes with Vue components in a declarative fashion.

It's build on-top of a Vue Custom Renderer and it's powered by Vite.

The goal is to provide the Vue's community an easy way of building 3D scenes with Vue, always up to date with the latest ThreeJS features and with 0-to-none maintenance.

Installation

pnpm install @tresjs/core three

Docs

Checkout the docs

Demos

Ecosystem

Package Version
Tres tres version
Cientos cientos version
Post-processing post-processing version
Nuxt nuxt version
TresLeches 🍰 tresleches version

Contribution

We are open to contributions, please read the contributing guide to get started.

Setup

pnpm install --shamefully-hoist

Playground

To run the small playground

pnpm run playground

Build lib

To build the core as library mode just use

pnpm run build

Docs

To run de docs in dev mode

pnpm run docs:dev

To build them

pnpm run docs:build

License

MIT

Sponsors

sponsors