bevyengine / bevyengine/bevy

ExtendedMaterials no longer applied after visibility change

Open
#20,168 4 comments 0 reactions 1 assignee Claimed by @tychedelia View on GitHub
A-Rendering C-Bug C-Docs S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

16.0 (same behaviour observed on 16.1)

```
AdapterInfo { name: "GeForce GTX 660 Ti", vendor: 4318, device: 4483, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "456.71", backend: Vulkan }
```

## What you did

[I came across a rendering issue with custom materials and asked for help in the discussion tab](https://github.com/bevyengine/bevy/discussions/20150)

[Then to try to isolate the issue, I forked and added to the original Extended Material example, adding a system that toggled the visibility on and off.](https://github.com/secretlyagoblin/bevy/commit/2e3b15595a92f8ad332ac1ae19914e379116a2a7)

## What went wrong

When I run the example, the custom rendering is applied correctly.

After I hit spacebar twice, hiding the entity and then showing it again, the material is black.

https://github.com/user-attachments/assets/ada1290c-5224-4cd2-a68d-7a17e0ee9268

## Additional information

In my original discussion, I also observed that the extended material properties are not applied if the entity in question is outside of the view frustum of the camera, although I can't be sure of the specifics of that.

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.