added texturing to my affine triangle rasterizer

making a triangle rasterizer is a lot like programming language development. you make a few building blocks and then you're like "theoretically, using this, i could make anything"

and now its gouraud shaded and textured

also it makes me happy when people tell me it's a fine triangle rasterizer because that's the name of the library :3 so thank you to everyone that did so

Eniko Fox

@eniko@mastodon.gamedev.place

should i do the psx colored texturing thing where medium gray is treated as 1 and white is treated as 2? in other words instead of mapping rgb 0-255 to 0-1 it treats it as 0-2, so values over 128 make the texture channels brighter, while under 128 make it darker (and 128 stays the same)

March 13, 2026 at 8:30:22 PM

okay yeah this is way better

You can do. But remember to do the dithering after the multiplication, not before like the early PSX!

Elk Logo

Elk is in Preview!

Thanks for your interest in trying out Elk, our work-in-progress Mastodon web client!

Expect some bugs and missing features here and there. we are working hard on the development and improving it over time.

Elk is Open Source. If you'd like to help with testing, giving feedback, or contributing, reach out to us on GitHub and get involved.

To boost development, you can sponsor the Team through GitHub Sponsors. We hope you enjoy Elk!

Patak三咲智子 Kevin DengAnthony FuDaniel Roe

The Elk Team