Workbench: Shadows: Fix cap being clipped by far plane.
authorClément Foucault <foucault.clem@gmail.com>
Mon, 4 Jun 2018 15:33:25 +0000 (17:33 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 4 Jun 2018 15:33:34 +0000 (17:33 +0200)
commit101c277e3d8241ad55f6343690b5d96a5e37d1f0
treed5fa83446648b942d06eb0016e42aef8a5c1ae6b
parent349d416949d89b0428abf18e8d3b490470c9601d
Workbench: Shadows: Fix cap being clipped by far plane.

This was the last remaining problem with shadow volumes (that I know of).

Only extrude until we hit the far plane.
source/blender/draw/engines/workbench/shaders/workbench_shadow_vert.glsl
source/blender/draw/engines/workbench/workbench_deferred.c
source/blender/draw/engines/workbench/workbench_private.h
source/blender/draw/engines/workbench/workbench_studiolight.c
source/blender/draw/intern/DRW_render.h
source/blender/draw/intern/draw_manager_exec.c