Mikko Mononen

@MikkoMononen@mastodon.gamedev.place
172 Followers
64 Following
58 Posts

Coder and woodworker. Author of Recast&Detour and NanoVG. Previously at Epic Games, Unity, Tinkercad, Crytek, demoscene.

https://github.com/memononen

@floooh Do you have recommendations for tagged unions in C API?

I have a case in skribidi (styling https://github.com/memononen/Skribidi/issues/49#issuecomment-2973298601) which is a good fit for tagged union.

I did see that you reverted some union use in Sokol in a "bindgen preparations" CL way back in 2020. Smells like a minefield for language interop?

In my case I would be fine having a function for initializing the whole struct, or having a getter function to poke the specific struct out. Sort of opaque value struct :)

Text underline support · Issue #49 · memononen/Skribidi

It would be nice if skribidi supports text underline (and I guess strikethrough would be a trivial addition if underline already exists ...)

GitHub
Is there a way to run github CI from the desktop app before push?

I have been researching and working on a text stack good part of this spring.

It is called Skribidi, and it can do bidirectional text layout, rendering and editing.

It has fairly lean dependencies and is MIT licensed.

https://github.com/memononen/Skribidi

It kinda started as a self help project trying to deal with weltschmerz and burnout. I needed something the felt even mildly meaningful and complex enough that I could hyper focus on details.

Any feedback welcome!

GitHub - memononen/Skribidi: Nimble bidirectional text stack for UIs

Nimble bidirectional text stack for UIs. Contribute to memononen/Skribidi development by creating an account on GitHub.

GitHub

I have been working on linear sRGB blending recently (mostly logging my progress on bsky).

I came up with this, which fixes darkening issue of direct sRGB blending, and thinning/gradient-skewing of linear sRGB blends:
https://www.shadertoy.com/view/XXGfW3

I dont know exactly why it works as well as it does, but I like it. I'm sure it can be all boiled down to some offsetting and scaling and a cubic root :)

If someone has experienced the same rabbit hole, I would be interested to hear your stories.

Y'all want to see a cool shader?

https://www.shadertoy.com/view/dls3Wr

This is mashing up two ideas:

- @iquilezles@twitter.com's closed-form "signed distance to a quadratic Bézier curve" solver
- using winding number to determine inside/outside-ness

Putting these two ideas together, we can render a Bézier font from its raw control points, as a single (huge) closed-form math expression!

alright one more restructure~

this time it controls like the quadratic bézier spline! so you can make sharp corners if you want

mirroring the tangent points makes it C∞ instead of the C1 you'd get with the quadratic bézier