Is there no self shadowing with spotlights??

Is this not a feature? I can get self shadowing with directional lights, but not with spot lights?.
(I’m using the forward renderer)

There are limitations to the forward renderer that are not present in the deferred and vice versa. I wasn’t able to find a direct statement that this is the result of that but I’m willing to bet that’s what the problem is.

https://docs.unity3d.com/Manual/RenderingPaths.html

1 Like

I think that generally point and spot lights require a shader with “fullforwardshadows” to render dynamic shadows in forward. I don’t know which shaders have that flag or how needed it is anymore. I thought that was ‘stock’ in the standard shader for the last few years but I don’t remember exactly. Most of my work is with deferred.

It’s not that the cast shadows aren’t working, it’s just that single meshes don’t cast spotlights shadows on themselves (self-shadowing). Directional lights work perfectly.

It does for me atleast, forward rendering, shadowmask with mixed mode spotlight

Mixed mode point light

1 Like

Ok, thanks. I will try this.
What version were you using?

Above is 2017.4.33 I think, haven’t gotten around to bake my scenes in 2019 yet, baking is a bitch :slight_smile: but if it doesnt work in 2019 then it’s one of those regressions unity are famous for :slight_smile: I can try tomorrow on 2019.2.11 juts turned off my workstation.

I was using 2018.

Well, Fuck me sideways let me turn on my workstation again :stuck_out_tongue: give me a sec

Works in 2019.2.11 too