From 5cee018ec1db371b91156a78ff9282cff376bb93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 15 Apr 2012 19:04:49 +0200 Subject: [PATCH] Added normals to Plane primitive. --- src/Primitives/Plane.cpp | 7 ++++++- src/Primitives/Plane.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Primitives/Plane.cpp b/src/Primitives/Plane.cpp index f12f6fa8a..04903b226 100644 --- a/src/Primitives/Plane.cpp +++ b/src/Primitives/Plane.cpp @@ -24,6 +24,11 @@ Plane::Plane(): MeshData(Mesh::Primitive::TriangleStrip, nullptr, {new vector{ + {0.0f, 0.0f, 1.0f}, + {0.0f, 0.0f, 1.0f}, + {0.0f, 0.0f, 1.0f}, + {0.0f, 0.0f, 1.0f} +}}, {}) {} }} diff --git a/src/Primitives/Plane.h b/src/Primitives/Plane.h index 7ad887ca9..d21eee942 100644 --- a/src/Primitives/Plane.h +++ b/src/Primitives/Plane.h @@ -26,7 +26,7 @@ namespace Magnum { namespace Primitives { /** @brief %Plane primitive -2x2 plane orthogonal to Z axis. +2x2 plane with normals in positive Z direction. */ class Plane: public Trade::MeshData { public: