how do you disable an object's ability to cast shadows from a specific light source

my guy is carrying a lamp in front of him but this leaves a giant shadow right behind him that doesn’t look very pleasing. Is there a way to disable him from casting a shadow only from the lamp, while still having shadows from other lights in the scene?

No.

But what you can do is use layers, light culling masks, and multiple lights to get the same effect.

What you’d want to do is give your character their own layer. Anything you want to not cast a shadow. Then on the light in the lamp disable that layer on it’s culling mask. This will result in the character going dark because that light will no longer affect them. Now duplicate that light and change its culling mask to only affect that layer.

4 Likes

7536800--930839--upload_2021-9-30_15-37-45.png

I can’t find the culling layer option for the light

Ah, you didn’t specify you’re using the HDRP.

You have to enable that feature in the HDRP.
https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@11.0/manual/Light-Layers.html

1 Like