Cascaded shadow maps

For people working on the C++ code.
Post Reply
x2048
Developer
Posts: 68
Joined: Mon Feb 15, 2021 22:41
GitHub: x2048

Cascaded shadow maps

by x2048 » Post

Work in progress here: https://github.com/x2048/minetest/tree/shadow_csm.

Why / goals:
  • No distortion => simpler math => easier to maintain
  • Better shadow quality or fewer resources for the same quality
  • No fading of the shadow at a distance of in the corners of the screen
  • Correct shadows for large sparse meshes (Little Lady, clouds etc.)
What works so far:
  • Non-colored shadows
  • 3 cascades
  • update cascade 0 every frame, incremental updates for the other cascades
  • soft shadows
Worth it?

User avatar
DELTA_FORCE
Member
Posts: 165
Joined: Tue Oct 30, 2018 01:26
IRC: DELTA_FORCE
In-game: DELTA_FORCE
Location: ee

Re: Cascaded shadow maps

by DELTA_FORCE » Post

I would like to test but I do believe it's worth it. Anything more maintainable is a huge win in my book.
check me out nowhere because i never do anything

Astrobe
Member
Posts: 517
Joined: Sun Apr 01, 2018 10:46

Re: Cascaded shadow maps

by Astrobe » Post

If the clouds you mention are the normal MT clouds, yes, do want - especially if it doesn't take too much resources. Cloud shadows could free me from adapting luminosity to cloud coverage, which is a bit tricky because it must work with the sun and the moon.
My game? It's Minefall.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest