Skip to content

stani-m/rasterizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a software rasterizer written in Rust that I wrote as part of my Bachelor thesis. It can rasterize lines and triangles into a buffer that can be displayed or saved into a file. I've tried to keep the interface similar to wgpu, so it should be familiar to anyone with graphics programming experience. I've also tried to make the graphics pipeline configurable and extensible so that users could implement and use their own vertex/fragment shaders, rasterizers, clippers...

There are no docs other than runnable examples, but I wouldn't recommend using it for anything important anyway. The interface can be a little rough around the edges, so at best, if anyone ever stumbles upon this, it might be useful for unimportant personal projects or to someone writing their own rasterizer.

Examples

Line rasterization

Line rasterization

Triangle rasterization

Triangle rasterization

Triangle clipping

Triangle clipping

Stochastic anti-aliasing

Stochastic mode: Stochastic anti-aliasing Static mode: Static anti-aliasing To switch between stochastic and static modes, press space.

About

A software rasterizer written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages