diff options
author | Laszlo Agocs <[email protected]> | 2017-03-24 14:16:32 +0100 |
---|---|---|
committer | Laszlo Agocs <[email protected]> | 2017-03-26 22:40:18 +0000 |
commit | dfef2e3f3eb2ca51e47ac26ee58c5569892d0128 (patch) | |
tree | 4c059288d61d4681a8cf89e5f1d2865aa0c11c8a /examples/vulkan/shared/trianglerenderer.cpp | |
parent | 92dce210a2ca97161b4fc9cb1991585816982ff7 (diff) |
Clarify the front face winding order in the Vulkan examples
After applying the correction matrix the front face is CW, not CCW.
The examples work either way but fix them up to avoid reader confusion.
Change-Id: I491e6dc17c21897a59f36d32061e937f2b6c4c9d
Reviewed-by: Andy Nichols <[email protected]>
Diffstat (limited to 'examples/vulkan/shared/trianglerenderer.cpp')
-rw-r--r-- | examples/vulkan/shared/trianglerenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/vulkan/shared/trianglerenderer.cpp b/examples/vulkan/shared/trianglerenderer.cpp index f2e636bbe61..a0800080a06 100644 --- a/examples/vulkan/shared/trianglerenderer.cpp +++ b/examples/vulkan/shared/trianglerenderer.cpp @@ -337,7 +337,7 @@ void TriangleRenderer::initResources() rs.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO; rs.polygonMode = VK_POLYGON_MODE_FILL; rs.cullMode = VK_CULL_MODE_NONE; // we want the back face as well - rs.frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE; + rs.frontFace = VK_FRONT_FACE_CLOCKWISE; rs.lineWidth = 1.0f; pipelineInfo.pRasterizationState = &rs; |