CesiumGS / CesiumGS/cesium

Decouple label fill color and outline color from internal glyphs

Open
#955 2 comments 0 reactions 1 assignee Claimed by @shunter View on GitHub
category - labels type - enhancement
Dominant language
JavaScript
Stars
15.7k
Forks
3.9k
Avg merge
4d 6h
Merged PRs (30d)
34

Description

Labels are drawn using an internally-managed texture atlas of glyphs. Right now, those glyphs have the fill and outline colors baked into them, which means that two labels that only differ in color are drawn into separate textures. This makes it expensive to change color, and unfeasible to smoothly interpolate label colors.

It would be better to decouple the shape of the glyph from the color information, essentially draw all glyphs in black & white and replace the colors in the shader.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.