2x faster lol

This commit is contained in:
Ryan Oldenburg 2021-01-26 16:55:33 -06:00
parent be6bebf553
commit 4cdb9db0f6

View file

@ -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: