https://github.com/wdevore/softrenderer
Simple software renderer in Go
https://github.com/wdevore/softrenderer
Last synced: 11 months ago
JSON representation
Simple software renderer in Go
- Host: GitHub
- URL: https://github.com/wdevore/softrenderer
- Owner: wdevore
- License: mit
- Created: 2019-03-22T14:53:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-19T00:33:18.000Z (about 5 years ago)
- Last Synced: 2025-03-28T16:36:00.379Z (about 1 year ago)
- Language: Go
- Size: 160 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SoftRenderer
A simple software render using SDL
# Resources/Dependencies
- SDL >=0.4.5
# Building
All examples can be executed by:
```> go run .```
For example, navigate to the *examples/tri_raster* folder and "```go run .```"
# Tasks
- **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
# References
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