Modifications to shadowmapping example
Change-Id: Idd0589033b56d82ba59258812a3bc0ecbc540ef3 Signed-off-by: saschawillems <webmaster@saschawillems.de>
This commit is contained in:
parent
2156fdddc6
commit
286d589497
3 changed files with 8 additions and 13 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue