o
odinpkg.dev
packages / library / line_geometry_sokol

line_geometry_sokol

987aab1library

No description provided.

No license · updated 1 year ago

Generate and render mesh data for mitered lines using Sokol

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.

Run

  1. git submodule update --init to make sure the dependencies are cloned
  2. Build Sokol as instructed in vendor/sokol-odin/README.md
  3. odin run .

Recompile shader

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