mayacoda / textured-cube

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Textured Cube

⚡️Link to demo on Vercel

This is an example of rendering a textured, semi-transparent BoxGeometry with custom vertex and fragment shaders. The main implementation of the geometry and shader logic is in the src/demo directory.

This project uses as a starting point the simple-threejs-typescript-starter, also by me.

Screenshot

Local development

To install the dependencies and run the page locally run:

yarn install
yarn dev

This will start a local server at http://localhost:5173 using Vite.

Building

To build the project run:

yarn build

To preview the build run the following command, which will start a local server with the built app at http://localhost:4173.

yarn preview

About

License:MIT License


Languages

Language:TypeScript 91.0%Language:SCSS 3.1%Language:GLSL 3.0%Language:HTML 1.9%Language:JavaScript 0.7%Language:Shell 0.4%