diff options
Diffstat (limited to 'tests/manual/rhi/shared/cube.h')
-rw-r--r-- | tests/manual/rhi/shared/cube.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/manual/rhi/shared/cube.h b/tests/manual/rhi/shared/cube.h index 252e80c56c..e3ee11b66c 100644 --- a/tests/manual/rhi/shared/cube.h +++ b/tests/manual/rhi/shared/cube.h @@ -25,6 +25,8 @@ * Author: Bill Hollings <bill.hollings@brenwill.com> */ +// Normals added by Qt. + #ifndef CUBE_H #define CUBE_H @@ -72,6 +74,7 @@ static const float cube[] = { 1.0f,-1.0f, 1.0f, 1.0f, 1.0f, 1.0f, + // UVs 0.0f, 1.0f, // -X side 1.0f, 1.0f, 1.0f, 0.0f, @@ -113,6 +116,49 @@ static const float cube[] = { 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, + + // normals + -1.0, 0.0, 0.0, // -X side + -1.0, 0.0, 0.0, + -1.0, 0.0, 0.0, + -1.0, 0.0, 0.0, + -1.0, 0.0, 0.0, + -1.0, 0.0, 0.0, + + 0.0, 0.0, -1.0, // -Z side + 0.0, 0.0, -1.0, + 0.0, 0.0, -1.0, + 0.0, 0.0, -1.0, + 0.0, 0.0, -1.0, + 0.0, 0.0, -1.0, + + 0.0, -1.0, 0.0, // -Y side + 0.0, -1.0, 0.0, + 0.0, -1.0, 0.0, + 0.0, -1.0, 0.0, + 0.0, -1.0, 0.0, + 0.0, -1.0, 0.0, + + 0.0, 1.0, 0.0, // +Y side + 0.0, 1.0, 0.0, + 0.0, 1.0, 0.0, + 0.0, 1.0, 0.0, + 0.0, 1.0, 0.0, + 0.0, 1.0, 0.0, + + 1.0, 0.0, 0.0, // +X side + 1.0, 0.0, 0.0, + 1.0, 0.0, 0.0, + 1.0, 0.0, 0.0, + 1.0, 0.0, 0.0, + 1.0, 0.0, 0.0, + + 0.0, 0.0, 1.0, // +Z side + 0.0, 0.0, 1.0, + 0.0, 0.0, 1.0, + 0.0, 0.0, 1.0, + 0.0, 0.0, 1.0, + 0.0, 0.0, 1.0 }; // clang-format on |