Skip to content

ExtendedMaterials no longer applied after visibility change #20168

@secretlyagoblin

Description

@secretlyagoblin

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

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.

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.

2025-07-17.11-30-29.mp4

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.

Metadata

Metadata

Assignees

Labels

A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorC-DocsAn addition or correction to our documentationS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions