Cubemap shadow (#558)

* Cubemap shadow WIP
* Fade out Point Light Shadow
* Fixed SpotLight Direction and Angle

Added Fadeout at the edges of Spot Light Cone

* Using Light.Out for Spot Light Projection Matrix
* Added Experimental Blob Shadows
* Fixed Crash with too many blob shadows.

Now using the 16 nearest spheres

* Remove long unused UNIT_SHADOW
* Fix merge
* Check cast shadows flag for dynamic shadows generation
* Make shadow spheres count customizable, add "shadows: all" setting
* Fix headers
* Fix copypaste error
* Fix shader compiling
* Format code, make subfunction for blobs rendering

Co-authored-by: Raildex <n@a>
Co-authored-by: Lwmte <3331699+Lwmte@users.noreply.github.com>
This commit is contained in:
Raildex 2022-06-29 16:54:48 +02:00 committed by GitHub
parent c0582c9a9c
commit 84f93608bb
34 changed files with 811 additions and 400 deletions

View file

@ -9,6 +9,16 @@ local strings = {
"",
""
},
all = {
"All",
"",
"",
"",
"",
"",
"",
""
},
apply = {
"Apply",
"",
@ -669,6 +679,16 @@ local strings = {
"",
""
},
none = {
"None",
"",
"",
"",
"",
"",
"",
""
},
ok = {
"OK",
"",
@ -739,6 +759,16 @@ local strings = {
"",
""
},
player = {
"Player",
"",
"",
"",
"",
"",
"",
""
},
render_options = {
"Render Options",
"",