- Home /
[ReWorded] When my trees are rendered, the leaves are transparent...
The problem is that when I render the camera to a texture. Either I can have transparency in the background, but the leaves of trees are also transparent. Or I can have beautiful looking trees but no transparency in the alpha background.
Setting the renderTexture file to COLOR FORMAT: ARGB32 gives me transparency, but the leaves of the trees have no light and thus look super weird.
Setting the renderTexture file to COLOR FORMAT: RGB11110 gives great effect on the trees, but then I cannot have a starfield simulation because there is not transparency..
Either I am setting this up completely wrong, or I am misunderstand the actions I need to take
I even made a video on youtube because a simple picture didn't help my post last time! https://www.youtube.com/watch?v=EKnE5PPmOj0&feature=youtu.be
Here is the link to my previous post explaining it in words: https://answers.unity.com/questions/1451578/rendertexture-lacks-quality-trees-have-a-grey-outl.html
Hello, I guess there is light pass issue here that causes alpha blending act weird, it is probably because of your tree shader, but before dive into shaders, can you try to change your camera Rendering path, we can not see your camera rendering path in video but I assume it is in forward rendering mode, can you change it to deferred and inform us if it is works.
Thanks for trying to help me. I did actually try to change the rendering path between all of them and it didn't change a damn thing, except the texture quality of the branches.
I did Notice a few things, which gives me more questions than answers: 1) Leaving everything the way it is, $$anonymous$$aking the starfield skybox purple makes the leaves turn purples. Which means that the leaves, when rendered, are completely transparent, not simply missing light but completely transparent!