• Stars
    star
    231
  • Rank 173,434 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple software rasterizer running on a WebGPU compute shader. Built for educational purposes.

WebGPU Compute Rasterizer

This is a basic implementation of a rasterizer running on WebGPU compute shaders. It currently supports loading a list of triangles from a (very basic) glTF model and rendering it, with shading based on each triangle's distance to the camera.

I built this to create a simple template for exploring compute-based rendering techniques. Initially inspired by Rendering Point Clouds with Compute Shaders and Vertex Order Optimization.

See:

Building locally

Run npm install and npm run dev. Then open localhost:3000.

You must use a browser that supports WebGPU. See the setup instructions in this article.

Rust port

There is a Rust port of this article here: https://github.com/pudnax/compaster. Created by @pudnax.

More Repositories

1

jpeg-sandbox

Interactively edit individual DCT blocks in any JPEG image in the browser.
JavaScript
392
star
2

webgl-outlines

Implementation of a post process outline shader in ThreeJS & PlayCanvas.
JavaScript
346
star
3

google-earth-as-gltf

JavaScript
325
star
4

I-Spy-A-Ghost

An experimental p2p multiplayer game made in HTML5/Phaser using WebRTC in 48 hours for Ludum Dare
JavaScript
57
star
5

tutsplus-toon-water

Source code for my Tuts+ tutorial on creating toon water for the web.
JavaScript
39
star
6

lda-explorable

An interactive article about the geometric intuition behind Linear Discriminant Analysis.
JavaScript
30
star
7

threejs-sketchfab-example

Code example for loading 3D models from Sketchfab into ThreeJS
JavaScript
29
star
8

vite-hot-reload-example

Example setup using Vite hot module reloading for creative coding
JavaScript
18
star
9

Airena

Write & edit AI code on the fly to fight in the arena!
JavaScript
14
star
10

atom-tracer

A language agnostic Atom package for tracing variables inline!
Python
11
star
11

tutsplus-glitch-multiplayer

This project contains the complete example of my Tuts+ tutorial on creating a multiplayer game with Socket.io and Phaser.
HTML
8
star
12

entwined-web

Experimental prototype to port Entwined to the web
JavaScript
5
star
13

satcamp-bike-viz

CSS
4
star
14

basic-networking

A barebones example of how to set up a basic networking/multiplayer web app
HTML
4
star
15

map-my-ithaca

Art project for articulating the maps in our heads
JavaScript
3
star
16

web-boilerplate

My boilerplate setup for creative web projects
JavaScript
3
star
17

Kill-The-Red-Hat

A game/experiment written in nodejs and using socket.io and Three.js
JavaScript
3
star
18

Move-or-Die-Documentation

Documentation for the game Move or Die's source code
JavaScript
3
star
19

drone-jam

JavaScript
2
star
20

snakedragon-game

Game for GMTK 2021 jam
JavaScript
2
star
21

csta-materials

Resources for our CSTA 2017 talk on teaching by hacking on open source games
1
star
22

Using-Displacement-Shaders-to-Create-an-Underwater-Effect

This is a repository containing materials and examples for the Tuts+ tutorial.
HTML
1
star
23

glitchmultiplayer

Contains the starter kit & steps for the GlitchCon 2017 Socket.io multiplayer workshop
HTML
1
star
24

csb-l01dp

HTML
1
star
25

ShehataMedicalSystem

A simple Django app handling data entry, storage, and retrieval for patients in a clinic
Python
1
star