Skip to content

Grayscale PNG spritesheet causes blue tints to be ignored #1518

@JeanMertz

Description

@JeanMertz

Bevy version

main (c2a427f)

Operating system & version

macOS 11.2.1

What you did

Load a Greyscale PNG spritesheet (via from_grid), set any colours with blue in them.

What you expected to happen

The blue tint should be applied.

What actually happened

Blue is ignored, producing inaccurate colour representations.

Additional information

Opening the png file and re-exporting it as an sRGB file solves the problem.

Original Spritesheet (white glyphs with transparent background)

Before

After

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsA-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions