修正因为剔除反面造成的无法绘出画面问题

This commit is contained in:
HuYingzhuo 2019-04-20 17:41:44 +08:00
parent e9408e9b24
commit 4b86ce91ab

View File

@ -80,8 +80,8 @@ PipelineCreater::PipelineCreater(Device *dev)
rasterizer.depthClampEnable = VK_FALSE;
rasterizer.rasterizerDiscardEnable = VK_FALSE;
rasterizer.polygonMode = VK_POLYGON_MODE_FILL;
rasterizer.cullMode = VK_CULL_MODE_FRONT_AND_BACK;
rasterizer.frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE;
rasterizer.cullMode = VK_CULL_MODE_BACK_BIT;
rasterizer.frontFace = VK_FRONT_FACE_CLOCKWISE; //顺时针
rasterizer.depthBiasEnable = VK_FALSE;
rasterizer.depthBiasConstantFactor = 0;
rasterizer.depthBiasClamp = 0;