bevyengine / bevyengine/bevy

Sprites sometimes not rendering when displayed along Mesh2d/MeshMaterial2d.

Open
#17,318 2 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Bug S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.15.1

## \[Optional\] Relevant system information

`AdapterInfo { name: "Apple M3 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }`

## What you did

Two entities: `Player` and `Enemy`.

1. Both render fine with `Sprite` components (using TextureAtlases).
2. On the `Enemy` entity, add `Mesh2d` and `MeshMaterial2d` with a `Circle` and `ColorMaterial`, respectively.
3. Observe that `Player`'s `Sprite` no longer renders when `Enemy`'s `Mesh2d` is displayed on the screen.
4. Once the camera is moved so that the `Enemy` is no longer visible, the `Player`'s `Sprite` does begin to render. It disappears again if moving the camera back to the previous position, exactly as the `Enemy` comes into frame.

## What went wrong

Expect to see Sprite, but don't.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.