diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-06-02 21:50:04 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-06-03 01:54:01 +0300 |
commit | 0d52f8daea3b6603db83f41aa97fb137b4c97bcc (patch) | |
tree | e67899497e222d332e7fd96eea8dccfb1496ac32 /source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl | |
parent | 4bd2de2030f5c655256c9108eef53b536768d9be (diff) |
Eevee: Polishing of Exponential Shadow mapping
Added exponent parameter to tweak light bleeding.
Added depth bias to the shadow test.
Added better blurring using 32 samples.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl index a9be6ca5478..8963ad2b93e 100644 --- a/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl @@ -36,13 +36,14 @@ struct LightData { struct ShadowCubeData { - vec4 near_far_bias; + vec4 near_far_bias_exp; }; /* convenience aliases */ -#define sh_cube_near near_far_bias.x -#define sh_cube_far near_far_bias.y -#define sh_cube_bias near_far_bias.z +#define sh_cube_near near_far_bias_exp.x +#define sh_cube_far near_far_bias_exp.y +#define sh_cube_bias near_far_bias_exp.z +#define sh_cube_exp near_far_bias_exp.w struct ShadowMapData { |