Skip to main content

public 3d-motion repository

web-experiments

// oktomus/web-experiments

Rendering, compute, GPU experiments

$ git log --oneline --stat
stars:34forks:2updated:2025-09-07
README.md
readonly

Some of my web experiments. Check my blog where I talk about rendering and shaders.

🚧 Disclaimer: Most of these are made using draft APIs.

WebGL 2.0 Compute: toy ray tracer

ray tracing demo

While this ray tracer is not physically correct and boring, it's a good example of what you can acheive with compute shaders in web.

This was made possible thanks to WebGL 2.0 Compute, an experimental feature currently available on Google Chrome (Linux or Windows).

Many thanks to 9ballsyndrome for his help and especially for his repository WebGL_Compute_shader where you can find really cool stuff made using WebGL 2.0 Compute.

WebGL 2.0 Compute: Random number generator

noise

How to generate random numbers in a compute shader.

WebGL 2.0 Compute: Framebuffer accumulation

accum

Keep a buffer over time and add values onto it. Useful in raytracing to do progressive rendering.

WebGPU: glTF Viewer

A non-finished attempt at foind a glTF viewer like minimal-gltf-loader with the WebGPU API.

viewer

WebGPU: Getting started

WhatCode linkWeb demo link
Access the GPUcodedemo
Create a buffercodedemo
Create a buffer and copy it to the GPUcodedemo
Compile and run a compute shadercodedemo
Matrix multiplication with compute shadercodedemo
Draw a triangle with vertex + fragment shadercodedemo
Draw using a vertex buffercodedemo
Draw using a index buffercodedemo
Use uniforms in fragment shadercodedemo
Load and sample a texturecodedemo
Create a buffer that combines vertices and uvscodedemo

Threejs : facing ratio shader

facing

Really basic shader setup with threejs.

metadata.json
JavaScriptWebGLWebGPU

[INFO] 2 topics link to curated motion topic pages.