[core] bump sprite atlas to 1024x1024
This commit is contained in:
@@ -12,7 +12,7 @@ const std::string AnnotationManager::PointLayerID = "com.mapbox.annotations.poin
|
||||
|
||||
AnnotationManager::AnnotationManager(float pixelRatio)
|
||||
: spriteStore(pixelRatio),
|
||||
spriteAtlas(512, 512, pixelRatio, spriteStore) {
|
||||
spriteAtlas(1024, 1024, pixelRatio, spriteStore) {
|
||||
}
|
||||
|
||||
AnnotationManager::~AnnotationManager() = default;
|
||||
|
||||
@@ -230,7 +230,7 @@ void Painter::renderSymbol(SymbolBucket& bucket, const SymbolLayer& layer, const
|
||||
config.program = iconShader->program;
|
||||
iconShader->u_matrix = vtxMatrix;
|
||||
iconShader->u_exmatrix = exMatrix;
|
||||
iconShader->u_texsize = {{ float(spriteAtlas->getWidth()) / 4.0f, float(spriteAtlas->getHeight()) / 4.0f }};
|
||||
iconShader->u_texsize = {{ float(activeSpriteAtlas->getWidth()) / 4.0f, float(activeSpriteAtlas->getHeight()) / 4.0f }};
|
||||
iconShader->u_skewed = skewed;
|
||||
iconShader->u_extra = extra;
|
||||
iconShader->u_texture = 0;
|
||||
|
||||
@@ -35,7 +35,7 @@ Style::Style(MapData& data_)
|
||||
glyphStore(std::make_unique<GlyphStore>()),
|
||||
glyphAtlas(std::make_unique<GlyphAtlas>(1024, 1024)),
|
||||
spriteStore(std::make_unique<SpriteStore>(data.pixelRatio)),
|
||||
spriteAtlas(std::make_unique<SpriteAtlas>(512, 512, data.pixelRatio, *spriteStore)),
|
||||
spriteAtlas(std::make_unique<SpriteAtlas>(1024, 1024, data.pixelRatio, *spriteStore)),
|
||||
lineAtlas(std::make_unique<LineAtlas>(512, 512)),
|
||||
workers(4) {
|
||||
glyphStore->setObserver(this);
|
||||
|
||||
Reference in New Issue
Block a user