2x faster lol
This commit is contained in:
parent
be6bebf553
commit
4cdb9db0f6
1 changed files with 2 additions and 0 deletions
|
@ -831,6 +831,8 @@ proc fillShapes(
|
|||
if bounds.y > y.float32 or bounds.y + bounds.h < y.float32:
|
||||
continue
|
||||
for (segment, winding) in shape:
|
||||
if segment.at.y > yLine or segment.to.y < y.float32:
|
||||
continue
|
||||
var at: Vec2
|
||||
if scanline.intersects(segment, at):# and segment.to != at:
|
||||
if numHits == hits.len:
|
||||
|
|
Loading…
Reference in a new issue