Hi there I have 3 trees on my unity terrain and each tree is using the same material which is the shader:
Universal Pipeline → Lit
However, I get warning messages pretty frequently stating:
The tree Tree_Name must use the Nature/Soft Occlusion shader. Otherwise billboarding/lighting will not work correctly.
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
However, I am very confused because I am using URP so if I change it to the Nature->Soft Occlusion Bark/Leaves then it will literally go all magenta like it has no texture (because now it’s not URP).
How can I fix this to get this warning to never come back?
Thanks!
You can set the shader as Universial render pipeline-Nature-Speed Tree
Actually I can’t find where is the shader setting for the tree.
It’s unclear from the warning message but you can remove this warning by adding LODs to the object in question, in the OPs case add an LOD group to the ‘Tree_Name’ object. If you wish to have a fast way of doing this consider using ‘AutoLOD’, its developed by Unity and works pretty well. Link to the repo is here, and you can import it through the package manager with the github link:
https://github.com/Unity-Technologies/AutoLOD
2 Likes
** How-to fix NATURE/SOFT OCCLUSION: Solution Steps
Assets > Asset Resources > TerrainSampleAssets > Prefabs > Ambient-Occlusion
Create a ‘new’ folder named Ambient-Occlusion
For any and ALL problematic plants
For example, Drag&Drop the PREFABS: Fern_B, Grass_B
Now, goto the Materials folder
For example, select Fern
IMPORTANT !!
Change Shader |Nature/Tree Soft Occlusion Leaves |
Now, goto the Textures > Details folder
Main Texture Drag&Drop Fern_BaseColor
Close and RELOAD project
You’re Welcome in advance. Yellow Console Error shall now be GONE…
“With time and some ‘digging into it’ research… Ye’ SHALL eventually figure it out. That is I.”
Thank you ALL at Unity. You guys are AWESOME !!
Thank you a million times! This made the error go away!