Notes from the KAYAC hyper-casual team
Tag: WebGL (5)

[WebGL2] Computing and Drawing Huge Numbers of Instances on the GPU with GPU Instancing x Transform Feedback
How to draw a huge number of meshes in WebGL2 with GPU Instancing while updating each instance's position and velocity on the GPU with Transform Feedback and double-buffered vertex buffers, with code from a sample implementation.

I Tried CPU-Based Ray Tracing with WebGL2
How I built a ray tracer in the browser that computes pixel colors in JavaScript on the CPU, accumulating the results in a render target with WebGL2 and moving the computation to Web Workers, plus a pitfall in what data can be passed to a worker.

I Made a WebGL App That Measures Device Performance
A rough benchmark built with Unity WebGL that measures CPU and GPU performance on PCs and smartphones, with results across devices and what each test reveals about the hardware behind it.

My Development Flow for WebGL Content, and What to Get Right
My development flow for WebGL content, from choosing a library and checking feasibility on target devices to preparing the build setup, test pages, a GUI for tweaking values in the browser and on-screen performance monitoring before the main development.

[WebGL] Sprite Animation in 3D Space Using Shaders
How to play a sprite-sheet animation on a plane in a three.js 3D scene by scaling and translating the UV coordinates in the shader, first showing a single frame and then looping through all frames over time.