-
Notifications
You must be signed in to change notification settings - Fork 1.3k
never scale images when copying them into the SpriteAtlas #3164
Comments
I agree that we should do it this way. This is what we're still doing in -js. The scaling was never ported. relevant discussion: mapbox/mapbox-gl-js#1124 |
@kkaefer @ansis Is there any significance to the use of While 1 is used everywhere else: https://github.com/mapbox/mapbox-gl-js/blob/abe3512815032f02a0edefe38c732b4431535b3a/js/symbol/sprite_atlas.js#L91
If not, I'm going to use |
I'm not sure, but I think the |
native definitely uses 1 at the equivalent spot. |
This is getting bumped from my priorities. |
Currently we bilinearly scale images that are not at the native pixel ratio up or down when adding them to the SpriteAtlas. This has led to code that is more complex than necessary and produced issues like #3031 and #2198.
Instead, we should copy images into the SpriteAtlas pixel-for-pixel, and let up/down sampling happen in the shaders.
@kkaefer @ansis -- am I missing anything that would make this non-viable?
The text was updated successfully, but these errors were encountered: