Skip to content

Text / AA rendering a bit off #435

@alextechcc

Description

@alextechcc

Hey, just want to start by saying that I feel like ECS with immediate mode rendering as this crate does it I think is like - an absolutely fantastic idea - and I really appreciate your responsiveness in all the issues here - and I'd love to start helping out if I can.

It seems either AA or hinting or blending/color conversion or the texel alignment is a bit off - at least with stock settings. Not exactly sure where to look.

Take a look at this image, the S in particular:
Image
It looks a bit more bold and uneven on bevy side. And taking a look at the pixels and editing the levels a bit to make it more obvious:

Image

I have been trying to experiment with the shader/clip rect/blending to fix this but have been unsuccessful so far. In some cases, not the image I've shown but with some text - it appears that the bevy version renders one pixel downwards compared to eframe, so I tried offsetting -0.5, -0.5 but that did not work. I also have ensured that bevy is using GL for consistency. It seems like color blending is correct, I have tried a 0 to 255 SRGB gradient and the values are identical when screencapped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions