parent
d13b9a93bc
commit
58b99c556e
1 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Vulkan Example - Shadow mapping for directional light sources
|
* Vulkan Example - Shadow mapping for directional light sources
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
|
* Copyright (C) 2016-2022 by Sascha Willems - www.saschawillems.de
|
||||||
*
|
*
|
||||||
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
|
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
|
||||||
*/
|
*/
|
||||||
|
|
@ -492,7 +492,8 @@ public:
|
||||||
pipelineCI.stageCount = 1;
|
pipelineCI.stageCount = 1;
|
||||||
// No blend attachment states (no color attachments used)
|
// No blend attachment states (no color attachments used)
|
||||||
colorBlendStateCI.attachmentCount = 0;
|
colorBlendStateCI.attachmentCount = 0;
|
||||||
// Cull front faces
|
// Disable culling, so all faces contribute to shadows
|
||||||
|
rasterizationStateCI.cullMode = VK_CULL_MODE_NONE;
|
||||||
depthStencilStateCI.depthCompareOp = VK_COMPARE_OP_LESS_OR_EQUAL;
|
depthStencilStateCI.depthCompareOp = VK_COMPARE_OP_LESS_OR_EQUAL;
|
||||||
// Enable depth bias
|
// Enable depth bias
|
||||||
rasterizationStateCI.depthBiasEnable = VK_TRUE;
|
rasterizationStateCI.depthBiasEnable = VK_TRUE;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue