- Home /
Question by
socialBacons · Aug 19, 2021 at 03:28 PM ·
scripting problemshadertransparencytransparenttransparent shader
Problem with transparent shader
I'm trying to create a shader for leaves of a tree. The goal is to add a allipse with a transparent gradient over the leaves when player/camera gets too close.
When I change the shader surface type to transparent the different leaf planes seem to be rendered wrong. I tried searching for an answer and it had something to do with unity's way of rendering transparent objects:
And here is the ellipse I try to achieve:
Only way I managed to get the leaves render properly was when I change surface type to Albedo and use Alpha clipping but that totally screws up the transparent ellipse effect.
I would greatly appreciate if there was a way to achieve this effect.
how-it-looks.png
(262.7 kB)
what-i-want.png
(237.5 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613041853im_/https://answers.unity.com/themes/thub/images/avi.jpg)