diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-06-02 21:52:44 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-06-03 01:54:01 +0300 |
commit | 403c6b1b8d96a882e689f5d0dda16a0bd66237c8 (patch) | |
tree | 72320ae1347c7fd4ba82cc79f97678a8f5b86944 /source/blender/draw | |
parent | d385ad3ce81e58abccfb3c7973b2198f6082429a (diff) |
Eevee: fix shadows artifact by clearing to max depth
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lights.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lights.c b/source/blender/draw/engines/eevee/eevee_lights.c index d7f36b5e26b..2fbe22b134b 100644 --- a/source/blender/draw/engines/eevee/eevee_lights.c +++ b/source/blender/draw/engines/eevee/eevee_lights.c @@ -728,7 +728,7 @@ void EEVEE_draw_shadows(EEVEE_SceneLayerData *sldata, EEVEE_PassList *psl) EEVEE_LampsInfo *linfo = sldata->lamps; Object *ob; int i; - float clear_color[4] = {0.0f, 0.0f, 0.0f, 0.0f}; + float clear_color[4] = {FLT_MAX, FLT_MAX, FLT_MAX, 0.0f}; /* Cube Shadow Maps */ /* Render each shadow to one layer of the array */ |