visualdesigncafe / nature-renderer

Nature Renderer is a plugin for the Unity game engine to efficiently render vegetation on your terrains.
https://visualdesigncafe.com/nature-renderer/
0 stars 0 forks source link

Ambiant Occlusion Artefacts #14

Open blackantmaster opened 4 months ago

blackantmaster commented 4 months ago

Describe the bug Some artefacts apperas in front of many meshes when the ambiant occlusion from Post processing Stack V2 is active in the Builtin version.

To Reproduce Steps to reproduce the behavior:

  1. Create an environment
  2. replace the grass shader with nature renderer
  3. add post processing stack V2 to the main cam with Ambiant Occlusion Layer.

Expected behavior no artefact

Screenshots Screen2024-02-16 13 00 43 Screen2024-02-16 13 26 16

Project(please complete the following information):

System (please complete the following information):

Additional context Add any other context about the problem here. The artefacts are caused by details mesh, one is mine using custom shader, the other one is the prefab Detaill Grass Variant 2 from the demo folder. If you add Ambiant occlusion to the camera in the demo scenes, and drop your camera bellow the terrain, you will see the artefacts appearing. Other mesh causing problem: White Flowers 01 variant 1, Conifer Artefact caused by Conifer

blackantmaster commented 4 months ago

and after more work I noticed that the wind effect is moving the mesh but the AO doesn't react as it would

BJPickles commented 4 months ago

Just a +1 to say I'm also experiencing this!

maxplooi commented 4 months ago

It looks like the ambient occlusion pass of the shader did not get patched correctly. For the Nature Shaders, can you make sure that you have the latest version installed? You can go to Window > Package Manager (Visual Design Cafe) to check if you have the latest versions.

For your custom shaders, can you check the source code to verify that it was patched correctly according to the documentation. Sometimes the patched shader code ends up in the wrong part of the shader, causing issues like this. If you can't figure out how to manually fix the shader code then feel free to upload it here or use the business contact form to send it privately and I'll take a look at it.