0

Depth Buffer with Multi Material

Hi! I am doing some shaders for planets... some planets like Saturn has a rings around them.

I want to show how the rings shadow falls on surface.. and i did it,

but i want to separate rings shadow shader from planet surface shader because there is more then one planet in space have rings :)

So i decided to do a multi material where first material is surface and second is shadow with multiplicative blend mode in shader.

http://SSMaker.ru/990b17ec/


and with depth buffer enabled on surface, shadow, rings shaders - second material (shadow) is being overlaped with rings...

http://SSMaker.ru/592a9c8b/

how can i fix this problem?


Kundesupport af UserEcho