I’m trying to modify the tree leaves shader in order to animate a change of season.
I have spent hours trying to figure this out. I’ve looked up several examples of blending 2 textures using a slider/range and my attempt to implement it within the Tree Leaves.shader fails. It will only blend from 1 texture to black.
The main command for blending I have found is this:
SetTexture[_MainTex]
{
Combine texture
}
SetTexture[_Texture2]
{
ConstantColor (0,0,0, [_Blend])
Combine texture Lerp(constant) previous
}
It seems like I can’t get the shader to use the second texture. It will only show the first and then blend to black. There’s a lot of other stuff going on in the shader and I wonder if something in the CG is causing this problem.
I really appreciate any help.
Thanks!