Skip to content

Commit

Permalink
Add Github Sponsors to FUNDING.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rswinkle committed Mar 19, 2023
1 parent c33fdcd commit 5b65553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

#github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: rswinkle
#patreon: # Replace with a single Patreon username
#open_collective: # Replace with a single Open Collective username
#ko_fi: # Replace with a single Ko-fi username
Expand Down
4 changes: 3 additions & 1 deletion src/gl_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,9 @@ static void draw_triangle_fill(glVertex* v0, glVertex* v1, glVertex* v2, unsigne
for (int ix = x_min; ix<ix_max; ++ix) {
x = ix + 0.5f; //center of min pixel

//see page 117 of glspec for alternative method
// page 117 of glspec describes calculating using areas of triangles but that
// simplifies (b*h_1/2)/(b*h_2/2) = h_1/h_2 hence the implicit line equations
// See FoCG pg 34-5 and 167
gamma = line_func(&l01, x, y)/line_func(&l01, hp2.x, hp2.y);
beta = line_func(&l20, x, y)/line_func(&l20, hp1.x, hp1.y);
alpha = 1 - beta - gamma;
Expand Down

0 comments on commit 5b65553

Please sign in to comment.