Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: WebGPU Rotating Cube (john-millikin.com)
2 points by jmillikin on May 6, 2023 | hide | past | favorite
This is a small "hello world" type WebGPU demo that fits in a single page (no NPM dependencies or build steps).

The last time I touched anything graphics-related was the OpenGL 1.x era, and I've been hoping WebGPU would be a good opportunity to come up to speed with modern standard GPU programming. However, the WebGPU tutorials I found were often small fragments of code aimed at people already familiar with DX12 or Metal, and the rest involved complex NPM build steps or "clone my repo to get started" setup scripts.

This page is just a plain HTML+JS file. You can edit the shaders live from the textboxes, or download it to make more involved edits. I hope it feels something like what learning JS used to be like in the days of MySpace and Geocities (in a good way).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: