WIP: [Feature] Triangle rasterization #2

Draft
bivashy wants to merge 6 commits from feature/triangle-rasterization into main
Owner

Description

Currently that uses Edge-based rasterization:
- Draws the three edges of the triangle
- Collects all edge pixels in a HashMap keyed by Y coordinate
- For each Y, finds gaps between edge pixels and fills them
- Complexity: O(perimeter + filled area)

### Description Currently that uses Edge-based rasterization: - Draws the three edges of the triangle - Collects all edge pixels in a HashMap keyed by Y coordinate - For each Y, finds gaps between edge pixels and fills them - Complexity: O(perimeter + filled area)
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/triangle-rasterization:feature/triangle-rasterization
git switch feature/triangle-rasterization

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff feature/triangle-rasterization
git switch feature/triangle-rasterization
git rebase main
git switch main
git merge --ff-only feature/triangle-rasterization
git switch feature/triangle-rasterization
git rebase main
git switch main
git merge --no-ff feature/triangle-rasterization
git switch main
git merge --squash feature/triangle-rasterization
git switch main
git merge --ff-only feature/triangle-rasterization
git switch main
git merge feature/triangle-rasterization
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bivashy/tinyrenderer!2
No description provided.