NiklasEi / bevy_asset_loader

Bevy plugin helping with asset loading and organization
Apache License 2.0
452 stars 53 forks source link

Sampling not respected for dynamically loaded TextureAtlas? #169

Closed feelingsonice closed 6 months ago

feelingsonice commented 7 months ago

I have my dynamic asset loaded like this:

({
    "image.tiles": TextureAtlas (
        path: "images/lab/tiles.png",
        sampler: Nearest,
        tile_size_x: 32.,
        tile_size_y: 48.,
        columns: 8,
        rows: 6,
    ),
})

But I don't think the sampler config "Nearest" is respected b/c the images still turns out blurry?

NiklasEi commented 7 months ago

Yes, this is a missing feature. At the moment the sampler field is only supported for Image, not for TextureAtlas.

NiklasEi commented 7 months ago

What I would also see as part of fixing this issue: a warning about unknown/ignored fields in dynamic assets.