Skip to content

Commit 6396b39

Browse files
author
csmartdalton
committed
fix(renderer): Interleave positive and negative feather atlas triangles (#11654) 37764336db
We were rendering the atlas with all negative triangles first, followed by all positive triangles. This is the worst possible ordering for maintaining high precision in a 16-bit coverage buffer, since as the magnitude accumulates, we lose the lower bits. Instead, render the positive/negative triangles interleaved, in the same order naturally come in. This requires an extra check in the fragment shader for whether the triangle is clockwise.
1 parent 2724030 commit 6396b39

File tree

2 files changed

+2
-2
lines changed