A 3D pumpkin made with Tres.js, a 3D library for Vue.js. This is a Halloween-themed demo for the Tres.js library that demonstrates particles, custom shaders, and glb models.
TresJsHalloweenPumpkin is a Halloween-themed demo made with Tres.js, a 3D library for Vue.js. It showcases the capabilities of the Tres.js library by creating a 3D pumpkin with particles, custom shaders, and glb models.
To install TresJsHalloweenPumpkin, follow these steps:
npm install tres.js
import { Tres } from 'tres.js';
Download the glb model for the pumpkin.
Add the necessary HTML markup to your Vue component’s template:
<template>
<div>
<tres-scene :width="800" :height="600">
<tres-pumpkin :model-path="require('./pumpkin.glb')"></tres-pumpkin>
</tres-scene>
</div>
</template>
Customize and style the pumpkin as desired, using the available Tres.js features and custom shaders.
Run the project and enjoy the Halloween-themed 3D pumpkin:
npm run dev
TresJsHalloweenPumpkin is a demo made with Tres.js, a 3D library for Vue.js. It showcases the library’s capabilities by creating a Halloween-themed 3D pumpkin with particles, custom shaders, and glb models. By following the installation guide, users can easily incorporate this demo into their Vue.js projects and customize it to fit their needs.