mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Backport DirectionalLight fade_start property to 3.x
- Implement shadow fading when using the Orthogonal shadow mode (like in `master`). This allows customizing the distance at which directional shadows start to fade away. Shadow fading will also always start at the same distance now, regardless of the current shadow mode in use. This is useful for enclosed levels to prevent shadows from fading at all with a well-tuned maximum distance. The default fade start value (0.8) results in fading happening later in the distance compared to the previous behavior, where fading started from the last shadow split distance (0.6 in PSSM 4 Splits and 0.1 in PSSM 2 Splits).
This commit is contained in:
parent
e96c42f0e1
commit
4fefb136ea
14 changed files with 53 additions and 19 deletions
|
|
@ -2381,6 +2381,7 @@ void VisualServer::_bind_methods() {
|
|||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SHADOW_NORMAL_BIAS);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SHADOW_BIAS);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SHADOW_FADE_START);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_MAX);
|
||||
|
||||
BIND_ENUM_CONSTANT(LIGHT_BAKE_DISABLED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue