A simple software render using SDL
- SDL >=0.4.5
All examples can be executed by:
> go run .
For example, navigate to the examples/tri_raster folder and "go run .
"
- working Setup SDL shell and framework
- Build a triangle rasterizers
- done Line renderer
- Port DDA from java softrenderer
- done Single triangle
- working Shared Edge triangles via Polygons
- done Line renderer
Search term: software triangle rasterization top left rule
- https://kitsunegames.com/post/development/2016/07/28/software-3d-rendering-in-javascript-pt2/ This is the best description of top-left rule
- http://graphics-software-engineer.blogspot.com/2012/04/rasterization-rules.html