diff options
author | Juan Linietsky <reduzio@gmail.com> | 2020-04-07 22:51:52 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-04-08 11:19:43 -0300 |
commit | 4ffc0d6b3f15bc1235c94932bf8e462dbaae9426 (patch) | |
tree | 3b31ba1d1a26159b56219fe8eb49453a74a41a41 /scene/3d/light_3d.h | |
parent | b2f79cac9a4b69a24ccf5f2bfeaeb5b38b7db369 (diff) |
Refactored shadowmapping.
- Made shadow bias size independent, so it will remain when changing light or camera size.
- Implemented normal offset bias, which greatly enhances quality.
- Added transmission to subsurface scattering
- Reimplemented shadow filter modes
Closes #17260
Diffstat (limited to 'scene/3d/light_3d.h')
-rw-r--r-- | scene/3d/light_3d.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/light_3d.h b/scene/3d/light_3d.h index 197e5854ec..ad2a1d5a84 100644 --- a/scene/3d/light_3d.h +++ b/scene/3d/light_3d.h @@ -49,7 +49,6 @@ public: PARAM_ATTENUATION = RS::LIGHT_PARAM_ATTENUATION, PARAM_SPOT_ANGLE = RS::LIGHT_PARAM_SPOT_ANGLE, PARAM_SPOT_ATTENUATION = RS::LIGHT_PARAM_SPOT_ATTENUATION, - PARAM_CONTACT_SHADOW_SIZE = RS::LIGHT_PARAM_CONTACT_SHADOW_SIZE, PARAM_SHADOW_MAX_DISTANCE = RS::LIGHT_PARAM_SHADOW_MAX_DISTANCE, PARAM_SHADOW_SPLIT_1_OFFSET = RS::LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET, PARAM_SHADOW_SPLIT_2_OFFSET = RS::LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET, @@ -57,7 +56,8 @@ public: PARAM_SHADOW_FADE_START = RS::LIGHT_PARAM_SHADOW_FADE_START, PARAM_SHADOW_NORMAL_BIAS = RS::LIGHT_PARAM_SHADOW_NORMAL_BIAS, PARAM_SHADOW_BIAS = RS::LIGHT_PARAM_SHADOW_BIAS, - PARAM_SHADOW_BIAS_SPLIT_SCALE = RS::LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE, + PARAM_SHADOW_PANCAKE_SIZE = RS::LIGHT_PARAM_SHADOW_PANCAKE_SIZE, + PARAM_TRANSMITTANCE_BIAS = RS::LIGHT_PARAM_TRANSMITTANCE_BIAS, PARAM_MAX = RS::LIGHT_PARAM_MAX }; |