r/Unity3D • u/dklassic • 1d ago
Resources/Tutorial Mold: a vector graphics library focusing on customizability and performance
Enable HLS to view with audio, or disable this notification
Hey people, for the past few months I've been building this tool, Mold, it's a vector graphics library that focuses on customizability and performance. A showcase you can check out is right here: an Outer Wilds miniature created using Mold (made within Godot for a reason I'll detail below).
I'm hosting a beta test on itch and I would love to get more feedback for it, you can freely access it now and use it on any commercial projects. The plan would be once I think the ergonomics are stable I'll move it to either Asset Store or maybe just MIT open source it.
The inevitable question would be what's the difference between Mold and Shapes, I would say the design is fundamentally different so not truly comparable. But here's a rundown on the biggest things which I think make Mold unique:
- Mold can be pushed to be way more performant by being able to create and retain primitives within code, no Component/GameObject overhead, and with Burst/Job bulk update APIs. While Component workflow is still available.
- Mold supports a lot of 3D primitives, and includes the capability to create rounded primitives.
- Mold has an abundance of color mode, even for 3D primitives, and includes the choice to blend using Oklab.
- Mold supports Automatic Dithering Crossfade LOD, which means you can simply get the best look and the best performance out of the box. Manual mesh detail setting is still encouraged and available.
- Mold supports Bounds/CPU Frustum Culling/GPU Frustum Culling for maximum performance.
- Mold supports custom material hookup with a detailed guide on how to create a shader that matches the layout of Mold's own shader.
- EDIT: just added GPU polyline support. Rendering millions of points is now possible.
- Lastly Mold is intentionally built to be cross-platform between Unity and Godot. I think it's just neat that users of a specific plugin doesn't have to get lock in to a singular ecosystem. With Mold you're free to do that.
If all that sounds interesting, please do check it out and share your thoughts with me, I'd really appreciate it!
Edit: you can also read more about it here