- Home /
Tree leaves lit up
So since the Unity 5 update my tree leaves just starts to glow whenever there's a light nearby. In unity 4 when this happend I changed the material from tree creator leaves fast to tree creator leaves, then the leaves would act like the branch in the picture, now it doesn't work. I'm going mad!
I don't know if this is a bug or if there is something new in unity 5 that I'm un aware of. Please help me! I can upload more images if it helps!
Hello, do you still have this issue?
I recently started adding trees to my scene (which I've worked on for quite a while to make sure no lighting bugs occur and so on).
Due to that fact I made cubemap cookies for some point lights, because actual spotlights are so terribly implemented in Unity that I can't use them with Shadows On.
Here comes to point:
The trees are constantly lit from the OPPOSITE side of the moon(a directional light). USing simple process of eli$$anonymous$$ation i found out that one pointlight using the cubemap cookie STILL lights the leaf material (and only the leaf material) of the trees, even though there are several walls in between, but that is irrelevant since it should send no light in that direction anyways.
So, there is obviously some problem regarding the tree creator materials, since nothing else in my scene is lit by the "dark sides" of the pointlight.
Hello, just in case you still want to have working leaves, I edited the Tree Creator shaders to work with all lighting. Additionally they cast shadows properly and receive all shadows.
https://www.dropbox.com/sh/q3m8dn8rhkvjdq1/AAAWW$$anonymous$$RV97Xgc8-_xLhn$$anonymous$$Qgqa?dl=0
To answer the question: The standard "Nature/Tree Creator Leaves" shader is only casting and receiving shadows from one directional light in the scene. In Unity 5.2 this is still not changed which is very sad so I took it into my own hands.
Answer by DeathDev · Mar 05, 2015 at 01:28 AM
Have you tried changing the material of the leaves to 'diffuse'?
Yes I tried this just now, but the tree creator will only accept the materials tree creator leaves fast and tree creator leaves.