Try it out yourself:
(Click into the image. Move with cursor keys and run by holding shift)
You can also Run this fullscreen in a new tab.
The just released version 1.13 of CopperLicht now includes this feature, you just need to set
...and it will work. You might want to tweak some of the shadow parameters like ShadowMapBias and ShadowMapCameraViewDetailFactor to make them look more nicely for your scene.
If you look closer in the demo, you'll notice that shadows in the distance won't have very high details, but shadows close to the camera have. That's because I've used a cascade shadow map approach with just two levels of shadow maps: One for the shadows close to the camera, and one for the ones in the distance. You can adjust how the shadows are drawn, like which resolution they'll have and what 'close' means. If your scene is a smaller one, then the shadows will have more details as well.
It's the first time I've been using shadow maps anywhere in my code, so I guess I'll find a lot of places where to optmize this still a bit for speed, but for now, it's quite ok, I think. I'll port this feature to other platforms too in the near future and make it available in the CopperCube game engine as well then.
three comments, already:
Tim - 22 03 17 - 13:41
Oh, it’s so good! Looks awesome! Cant wait when i can make this in my game! :D
rolevix (Vitaliy) - 22 03 17 - 16:08
Whoho! Looking forward to use this in CC in a near future!
Blackwater - 25 03 17 - 13:42