turanszkij / WickedEngine

3D engine with modern graphics
https://wickedengine.net
Other
5.85k stars 619 forks source link

[Bug] SSAO artefacts at the edge of the screen #926

Open ivalylo opened 3 months ago

ivalylo commented 3 months ago

Hi,

I noticed some sort of a bug in the SSAO shader related to the normal reconstruction. You can see black pixels on the left edge of the screen. This is a screenshot from RenderDoc, it's harder to notice after blur Capture

Here is a test scene. My screenshot is with the default camera after opening the screens. At other camera angles, it may be more difficult to see wicked_plane_ao.zip

I think it's related to the normal, since it was the most suspicious, and I also tested with a normal from the normal texture.

ivalylo commented 3 months ago

Btw, on the same scene you can also see something weird going on with the two pass gaussian blur. It's stretched horizontally.

Capture