toolness / shadowmap-2d

A WebGPU experiment rendering a top-down 2D scene using a shadow map.

Home Page:https://toolness.github.io/shadowmap-2d/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is an attempt to create a shadow map in 2D.

Quick start

npm install
npm run watch

Now run a static web server in a separate terminal window that serves files out of the repository's root directory, e.g. via npx http-server, and visit it.

Deployment

Run npm run build-js followed by sh ./copy-to-dist.sh to build everything for deployment, then upload the dist directory to a static web server.

You can also run npm run build-and-deploy to deploy everything to GitHub Pages.

License

Everything in this repository, including the Rust code and the Blender project, is licensed under CC0 1.0 Universal (public domain).

References

About

A WebGPU experiment rendering a top-down 2D scene using a shadow map.

https://toolness.github.io/shadowmap-2d/

License:Other


Languages

Language:TypeScript 81.5%Language:WGSL 11.0%Language:HTML 6.8%Language:Shell 0.7%