overwriting built-in tree shaders

how do I overwrite the built in tree shaders correctly?

There are lots of TreeCreateLeaves*.shader files. I added them as resource to our project and integrated our custom lighting into it, but don’t see a change. Only when changing TreeCreateLeavesRendertex.shader I see a difference for billboard trees farther away from the camera. But the 3d trees in front of the camera are not changing (and I tried all TreeCreateLeaves* shaders).

Any ideas?

I’ve found kinda solution:

  1. When your tree is on the scene it has a “Mesh Renderer” component and it has material(s).

  2. Those are the materials you need to change to see any changes. Even if you don’t change them just for example the lighting in a different file, you have to have those materials replaced.

I hope it helps somebody :slight_smile: