Cascaded Shadow Mapping for 3D Lighting

Here’s a video explaining what cascaded shadow maps are.

I think GDevelop’s lighting system could really benefit from this, atleast for directional lighting that mimics the sun. I’ve seen multiple projects, like the recent survival game example, trying to create an open world where the shadow just jankily cuts off very close to the camera, cascaded shadow maps were created to fix this.

Here’s an implementation of cascaded shadow maps for ThreeJS made by strandedkitty on github under the MIT license. It adds other things like fading shadows out instead of just cutting them.

2 Likes