Shadows not casted/received with HDR environment texture

I made another playground which has some better shadows and environment texture intensity is at 1

Trick here I guess is the light intensity is at 5, which produces stronger shadows?


Shadow could definitely be a bit darker but not so bad so far.

Will post some more examples with SSS

To get shadows on the dragon, you need to set receiveShadows = true for the corresponding mesh.

However, it’s tricky to get self shadows with the ESM technique, you have to tighten the light frustum as much as possible (see lines 17-18):

But doing so, you get some light artifacts on the opposite side of the dragon, that you can fix by setting shadowGenerator.forceBackFacesOnly = false:

2 Likes

Nice one Evgeni!

Looks like im seeing a shadow on the dragon itself: