Plane primitives no longer rely on normal vector

Former-commit-id: 66e1e2a83799055ad773f7b145e569469f68279a
This commit is contained in:
Lynix
2013-06-18 16:39:46 +02:00
parent 433c36f176
commit 880c2aa32c
6 changed files with 51 additions and 42 deletions

View File

@@ -15,13 +15,13 @@
struct NzPrimitive
{
NzMatrix4f matrix;
nzPrimitiveType type;
union
{
struct
{
NzMatrix4f matrix;
NzVector3f lengths;
NzVector3ui subdivision;
}
@@ -31,15 +31,12 @@ struct NzPrimitive
{
NzVector2f size;
NzVector2ui subdivision;
NzVector3f normal;
NzVector3f position;
}
plane;
struct
{
nzSphereType type;
NzMatrix4f matrix;
float size;
union