- Home /
How to disable self-shadowing on a mesh
I'm trying to disable shadows that a mesh casts on itself. This is not a "accepts shadows/casts shadows" flag question. I want the mesh to not be darker in areas where it occludes itself from the light source. If this is implemented at the shader level somehow, I would love to know, because it is not an option in the mesh renderer component.
Have you tried flooding the mesh with light, and only allowing shadow cast on certain lights?
You can put the mesh in a layer that light doesn't affect it and then use another light just for it.
No, seriously "self-shadowing" is a thing that most renderers allow you to turn off. It's a shader level thing that is usually exposed at the mesh renderer level but I can't find anything for this in Unity.
So i dove into this topic a little more, and it doesn't look like there is an option for disabling self cast currently. You could mess around with the type of shader you are using, and see what happens. I would also scope out the store to see if anyone has created a work around for this.