Colored shadows

I am trying to create colored shadows based off of the object that is casting the shadows color (I want to do this in the engine code itself not through blueprints). For example a blue box would have a blue shadow. I am having trouble with this, is there a way to change just the color of the shadow map?

Hi TriCKyPiCKle55,

The engine does not support individually colored shadows because shadows are simply the absence of light. You can tint the color of the world (and all shadows) by changing the color of a sky light in your world, but there is no built-in way to change the color of a shadow based on the color of the object itself.

You might be able to influence the color of a shadow if you look into where shadows are calculated in the engine’s shader code, but I don’t even think that would be possible because (at least in deferred rendering) the shadow maps are calculated before anything is rendered. Even if you could find a way to pass in the color of the object, it would not be the object’s true color because rendering the shadow map does not account for things like post-processing.

Hi TriCKyPiCKle55,

We haven’t heard from you in a while, so I’m going to mark this question as closed. If you have any additional information or would like to re-open the issue for another reason, feel free to add a comment.