This is the code for the blog post.
The interesting bits are in line_geometry.odin. main.odin is just an adapted sokol-odin example.
git submodule update --initto make sure the dependencies are cloned- Build Sokol as instructed in
vendor/sokol-odin/README.md odin run .
This is for Windows, change the path to call the right executable for your platform:
./vendor/sokol-tools-bin/bin/win32/sokol-shdc --input shader.glsl --output shader.odin --slang glsl430:hlsl5:metal_macos -f sokol_odin