A basic THREE.js project in TypeScript with Vite. Includes OrbitControls, Stats and basic shadows.
View demo hosted on CloudFlare pages: vite-threejs-ts-starter.pages.dev
Press e
key to export canvas as PNG
in a new browser tab.
Install dependencies.
npm install
Start development server.
npm run start
Toggle commented out code in main.ts
to run the Shader.ts
demo. Based on the THREE.js
example from Book Of Shaders.