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

Ambient Lighting on Meshes/Textures #7

Closed NicholasBrown-01 closed 8 months ago

NicholasBrown-01 commented 8 months ago

Describe the bug Cannot increase the distance in which vegetation that has been converted will render light/ambient light that affects it. I have included a screenshot of being a certain distance from an object, followed by the next screen shot of moving closer a few paces. If I deactivate the Nature Renderer Script attached to the terrain, the problem goes away and all vegetation meshes/textures render ambient lighting correctly. Any help is appreciated thank you!

Screenshots

1 2

Project(please complete the following information):

System (please complete the following information):

maxplooi commented 8 months ago

Thank you for reporting this. Could you let me know the URP settings that you are using? I looked into it and the most likely reason for light not rendering is the "Per Object Limit" for "Additional Lights" in the URP settings when using Forward rendering. It seems that Unity counts all of the vegetation as one object when using GPU Instancing, so with a lot of lights in the scene it can quickly reach the limit. unity-urp-settings-per-object-limit-for-additional-lights

The best solution for this would be to use Forward+ rendering. You can change this in the URP Renderer settings: unity-urp-forward-plus-rendering

I could not find any other reason why light would not render. If changing the above settings does not solve the issue then please let me know and I'll look into it further.

NicholasBrown-01 commented 8 months ago

That solved it. I wasn't even considering the amount of lights. Thank you. Will update my review as stated. Thanks again.