I have learned something from : Shadows on a ShaderMaterial?, but have some problems in code side. It is not easy for me,and we cant use NME ,either.Is there any possible that Babylon can support ShaderMaterial recieve shadow? Or some demo for this? It’s important for me,thanks.
Welcome aboard!
As @sebavan said in the thread, your best bet is to start with the ShadowOnlyMaterial implementation, since it would be quite complicated to add shadow support to ShaderMaterial
.
Perhaps creating a material plugin would better suit your needs?
1 Like
Thanks,I will learn something about Material plugin.