No Alpha on Main Color and no Shadow
Laygendev opened this issue · comments
Jimmy L commented
Luke Kabat commented
When it comes to shadow I would have to work it out how to include proper
shadow casting, I will try to do it in the following days. The alpha thing
however was not included due to the way that shader works (because outline
creates another object behind the real object and therefore when alpha of
the main color would be equal to 0 and outline alpha set to non zero the
outline object would still be visible), however if you want to experiment
with how the alpha works you can just change the following:
In line 121 of UltimateOutline.shader add word "alpha" at the end, so it
looks like this:
#pragma surface surf Lambert alpha
Jimmy L commented
It's working fine for the alpha.
i'm just waiting for the shadow casting now.
Thanks :)
Luke Kabat commented
Update:
It is not possible to combine shadow receiving and transparency - Unity simply forbids receiving shadows on transparent objects due to the way that ZBuffer works. I can try to implement version with shadows only, but then the outlines would lose the transparency as well.