diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-09-01 19:51:43 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-09-06 09:17:53 +0000 |
commit | 85f127cb045200fa5fa3608b859e59bb4a9c27b2 (patch) | |
tree | 22bba444eb17f95c4d0dfd4a95c215f5b1e9ee92 /examples/vulkan/hellovulkantexture | |
parent | 689a1e186b76853144802d9c29f0346856bd5fde (diff) |
Revise an incorrect QVulkanWindow doc note
Applying the transformation in question has no effect on the winding
order. Rewrite that section.
While all the examples are correct, clarify the rules for the geometry
they use since the winding order varies. Fix up the triangle example code
to use front=CCW for clarity (even though it does not matter much since
culling is off there).
Change-Id: Icb968c76cc9fa918a5608d3c66b4fccd5668175e
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'examples/vulkan/hellovulkantexture')
-rw-r--r-- | examples/vulkan/hellovulkantexture/hellovulkantexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/vulkan/hellovulkantexture/hellovulkantexture.cpp b/examples/vulkan/hellovulkantexture/hellovulkantexture.cpp index ffe1a31442..67ae0ca5dc 100644 --- a/examples/vulkan/hellovulkantexture/hellovulkantexture.cpp +++ b/examples/vulkan/hellovulkantexture/hellovulkantexture.cpp @@ -59,7 +59,7 @@ // Vulkan Y is negated in clip space and the near/far plane is at 0/1 instead // of -1/1. These will be corrected for by an extra transformation when // calculating the modelview-projection matrix. -static float vertexData[] = { +static float vertexData[] = { // Y up, front = CW // x, y, z, u, v -1, -1, 0, 0, 1, -1, 1, 0, 0, 0, |