Project image

SLGL

SLGL is a set of typed utilities for working with WebGL. I put this collection together after working on a number of simulations written directly with WebGL. I approached each utility in a functional way and worked to simplify the developer experience when creating shader-based projects.

The patterns found in SLGL allow for GPU programs to be constructed as plain old functions to be called when you need them which opens up a lot of modularity. For instance, for the Hyun’s Dojo Beta Landing project I encapsulated the Jump Flood Algorithm into a program that can be applied to any texture.

Copyright © '23 Jeff Schofield