diff options
| author | iamcheeseman <[email protected]> | 2026-05-14 21:13:49 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-14 21:13:49 -0400 |
| commit | 0baf1793f7ebd778a7b63a956d58767b4e3dfe94 (patch) | |
| tree | fe20c6222c12f70297fbc293497b96f60e39bd4e /teensy | |
| parent | 27202a3c293f4b4d5a2cd88171c7e00860c4b1d1 (diff) | |
blend rotated sprites
Diffstat (limited to 'teensy')
| -rw-r--r-- | teensy/teensy_renderer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/teensy/teensy_renderer.c b/teensy/teensy_renderer.c index ea61163..db9193f 100644 --- a/teensy/teensy_renderer.c +++ b/teensy/teensy_renderer.c @@ -222,6 +222,8 @@ void ty_draw_image_rot( continue; ty_Color px = ty_img_get_pixel(img, ty_vec2i(dx, dy)); + if (memcmp(&px, &BLEND_COLOR, sizeof(px)) == 0) + continue; ty_img_set_pixel(r.target, ty_vec2i(pos.x + img_x, pos.y + img_y), px); } } |
