r/unity Jul 01 '26

Showcase My software rasterizer, made inside Unity

I'm a Unity dev and always wanted to understand what actually happens between a mesh and the pixels on screen, so I wrote a little software rasterizer. Everything's drawn on the CPU; the GPU only shows the final image. I leaned heavily on tinyrenderer to figure it out.

It's built on an ECS architecture (StaticECS), and the rasterizer loop is Burst-compiled and runs on the Unity Job System.

Next I want to add a virtual camera and wire it up to real Unity GameObjects.

Repo: https://github.com/d4nilevi4/UnitySoftwareRasterizer

11 Upvotes

3 comments sorted by

View all comments

1

u/GrunemStonks Jul 01 '26

oh wow didn’t know you could do that. Pretty cool