Skip to content

Black spots when using SSAO #8925

@Elabajaba

Description

@Elabajaba

Bevy version

Bevy main, commit ee1368a.
Started with 72b4aac (fix normal prepass #8890)

Relevant system information

 AdapterInfo { name: "AMD Radeon RX 6800 XT", vendor: 4098, device: 29631, device_type: DiscreteGpu, driver: "AMD proprietary driver", driver_info: "23.5.2 (AMD proprietary shader compiler)", backend: Vulkan }

Also occurs on dx12.

What you did

Run the ssao example (in both debug and release mode)

What went wrong

image

Checking with renderdoc, the black spot is NANs that happen during the main opaque pass. This seems to only happen when SSAO is enabled on the camera (using ScreenSpaceAmbientOcclusionBundle), but still appears even when SSAO is turned off (by removing the ScreenSpaceAmbientOcclusionSettings component from the camera, leaving the DepthPrepass and NormalPrepass components on the camera).

Additional information

TODO

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