Draw only received shadow.

Hi all,
sorry for make double post, but we don’t found a solution :frowning:

is there a way with shader-graph make something for draw only the received shadow? every shadows received.

Thanks a lot for help!

Stefano

Reading the amount of shadow that a pixel receives can be done with a custom function node. The following link describes how to do custom lighting in Shader Graph using a custom function, which should point you in the right direction: Custom lighting in Shader Graph: Expanding your graphs in 2019

but my trouble is don’t draw the mesh that received the shadow… is it possible?

anybody have an idea? :sweat_smile: Thanks!

Well once you have the amount of shadow attenuation of a pixel, you could for example put that value through a One Minus node, and then put the result in the fragment node’s alpha input. This would make all pixels of a mesh transparent, except for the ones that are shadowed.