2
$\begingroup$

There's of course a binary option to use shadows or not to use shadows with a lamp. How can I do this somewhere in the middle, giving more control to use, say, 50% shadows?

$\endgroup$
1
  • $\begingroup$ First thought; Decrease the intensity of the lamp by 50% $\endgroup$ Apr 8, 2020 at 0:46

1 Answer 1

3
$\begingroup$

You can accomplish this by changing the material of the object casting the shadow and using the Light Path node:

material

Here, the principled shader would be the material of the object (replace with your material), and the factor of the mix shader determines how much of the shadow this object casts. (1.0 is no shadow, 0.0 is entire shadow).

If you're unable to change the material of the object, another approach would be to render the scene twice, once with shadows enabled for the light source and one disabled, then mix the results together. Obviously, this has the downside of needing to render the scene twice.

$\endgroup$
2
  • $\begingroup$ Is a variant of this method usable for individual lamps, or does it affect all of them? $\endgroup$
    – Legoman
    Apr 8, 2020 at 3:09
  • $\begingroup$ @Legoman Changing the material of the object will affect shadows from all light sources (even emissive objects). To have it apply to only one light source, you'd have to use the second approach of rendering the scene twice. I'd recommend trying to change the lighting in your scene first though, and only use it as a last resort. $\endgroup$ Apr 8, 2020 at 3:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .