You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(element): render MSDF text at the true glyph edge (#8935)
* fix(element): render MSDF text at the true glyph edge
A fixed 0.05 bias in the coverage remap placed the edge at sigDist ~0.525
instead of 0.5, eroding every glyph inward; at thin junctions this carved a
hole in the 'f' crossbar and notches in the 'x' crossing. Render at the true
edge (font_sdfIntensity 0 -> 0.5, still fattening with the same slope) and
derive anti-aliasing from the distance-field gradient so edges of any
orientation - including italic diagonals - anti-alias correctly. Drop the
now-unused map(), font_pxrange and font_textureWidth uniforms and _getPxRange().
Fixes#2948
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(element): flag outdated msdfPS chunk overrides
The coverage change removes the font_pxrange and font_textureWidth uniforms
(the engine no longer sets them), changing the msdfPS chunk contract. Register
msdfPS in chunkVersions so an older user override is flagged by the validator.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* docs(element): keep msdf shader comments to current behaviour
Drop the historical narrative from the coverage/anti-aliasing comments and
describe only what the code does.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments