Per-pixel collision detection