#Directional light apply outdoors, keeping dark interiors

5 messages · Page 1 of 1 (latest)

earnest vortex
#

Hi, in my 3D scene how can I make it so that the shadows casted indoors from the sky's directional light is darker? I need to make dark indoors but the sky's directional light is just making everything inside quite bright as well

I cant find anything online about how to achieve this and it seems like a weakness of godot specifically

zealous dome
#

A (very expensive) option would be to use SDFGI, since the lighting would then properly take into account how much the sky is also being occluded. If the levels are static you could also use baked lighting, or manually paint vertex colors.

#

Another (perhaps awful) hack: cast a bunch (somewhere between 1 and 6 or so) of raycasts in a hemisphere to roughly approximate the amount of skylight reaching the player, then turn down the exposure based on how many hit (use lerp smoothing to make it less jarring). You make a system where only one raycasts happens per frame, and it only updates that one occlusion value but the exposure is calculated every frame

earnest vortex
zealous dome