Modifications to shadowmapping example

Change-Id: Idd0589033b56d82ba59258812a3bc0ecbc540ef3

Signed-off-by: saschawillems <webmaster@saschawillems.de>
This commit is contained in:
Steve Hill 2017-07-27 10:36:47 +01:00 committed by saschawillems
parent 2156fdddc6
commit 286d589497
3 changed files with 8 additions and 13 deletions

View file

@ -299,6 +299,8 @@ public:
sampler.minLod = 0.0f;
sampler.maxLod = 1.0f;
sampler.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
sampler.compareEnable = true;
sampler.compareOp = VK_COMPARE_OP_LESS;
VK_CHECK_RESULT(vkCreateSampler(device, &sampler, nullptr, &offscreenPass.depthSampler));
prepareOffscreenRenderpass();