Skip to content

Rendering issue at the boundary of the clear color #2374

@allsey87

Description

@allsey87

Bevy version

0.5.0

Operating system & version

Arch Linux (5.12.9-arch1-1) running on a Toshiba laptop with Intel UHD Graphics 620 graphics.

What you did

Created a simple scene with a couple of meshes representing a floor and two boxes, although the problem was also recreated by just running the examples from bevy-inspector-egui.

What you expected to happen

The shadows from the egui widgets should blend nicely with the clear color set by AppBuilder's insert_resource(ClearColor(...)). Similarly, I suspect the meshes in my scene should not have this fine white outline where they transition from the mesh to the clear color.

What actually happened

The shadows from the egui widgets and the outline of the meshes interact strangely with the clear color. When changing the clear color dynamically using the widgets in the bevy-inspector-egui world example, it appears that the pixels in question are picking up the clear color but at a brightness several times higher than it should be.

Additional information

This problem is present either the X11 or Wayland features enabled on the Bevy crate (see below) and is present with/without egui/egui_bevy included in the project.

Screenshot from Wayland
wayland

Screenshot from X11
x11

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-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