Closed stmdhms closed 4 months ago
As a workaround, you can fix this by disabling MSAA.
The problem is that the OutlineNode
renders to the sampled colour attachment. This apparently overwrites the unsampled colour attachment with the sampled one again. However, the later part of the rendering pipeline, including the bloom effect, appears to operate only on the unsampled colour attachment and hence these effects are lost when an outline is rendered.
The distinction between sampled and unsampled colour attachments only exists when MSAA is enabled.
Fixed in 0.7.1.
It seems like bevy_mod_outline is not compatible with bloom, even if the entities with outlines don't have any emissive color set.
Here's a sample scene without outlines enabled. The left cube has a red emissive color. The right cube has no emissive color, and has an OutlineBundle with
outline.visible
set to false. The rendered result is as expected:If
outline.visible
on the right cube is set to true, the left cube suddenly loses its emissive glow:I'm using bevy 0.13.1 and bevy_mod_outline 0.7.0.
Code to reproduce: