Hi, I recently upgraded my project from Unity4x to 5x and there is a problem with the Tree Creator tree shaders in 5x. If I click on any button or tool in the Tree Creator dialog for my existing trees, they immediately turn pink. Also, new Tree Creator trees are pink. If I open up the “Hidden/TreeCreatorBarkOptimized” shader (for example) there are red warnings with the above or similar messages – ‘TreeVertBark’ or ‘TreeVertLeaf’ not found.
I don’t know anything about shader writing, but I brought up the TreeCreatorBarkOptimized.shader in MonoDevelop and it traced the error to a line with this command: “CGPROGRAM, #pragma surface surf BlinnPhong vertex:TreeVertBark addshadow nolightmap.” I looked up CGPROGRAM and apparently the #pragma is calling a Cg snippet which is then compiled by the Unity Editor. http://docs.unity3d.com/Manual/ShaderTut2.html
Apparently, the old nature shaders from my 4x project are calling for a Cg snippet that is not there in Unity5x.
I did notice that when I start a new project in Unity5x, and add new Tree Creator trees are OK. But the puzzling thing is that they still indicate that they are using the “Hidden/Nature/TreeCreatorBarkOptimized” and these old nature shaders are no where to be found in Unity5x. I assume this has something to do with the new “Physically-based Standard Shader” model though the trees and bark in 5x still apparently use the nature shaders, not the new standard one.
Any help with problem will be greatly appreciated. Thanks.
Zaffer