aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/S3DVertex.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/S3DVertex.h b/include/S3DVertex.h
index 2040f9d..3d78e20 100644
--- a/include/S3DVertex.h
+++ b/include/S3DVertex.h
@@ -44,7 +44,7 @@ const char* const sBuiltInVertexTypeNames[] =
struct S3DVertex
{
//! default constructor
- S3DVertex() {}
+ S3DVertex() : Color(0xffffffff) {}
//! constructor
S3DVertex(f32 x, f32 y, f32 z, f32 nx, f32 ny, f32 nz, SColor c, f32 tu, f32 tv)
@@ -142,7 +142,7 @@ struct S3DVertex2TCoords : public S3DVertex
: S3DVertex(pos, normal, color, tcoords), TCoords2(tcoords) {}
//! constructor from S3DVertex
- S3DVertex2TCoords(S3DVertex& o) : S3DVertex(o) {}
+ S3DVertex2TCoords(const S3DVertex& o) : S3DVertex(o) {}
//! Second set of texture coordinates
core::vector2d<f32> TCoords2;
@@ -214,6 +214,9 @@ struct S3DVertexTangents : public S3DVertex
const core::vector3df& binormal=core::vector3df())
: S3DVertex(pos, normal, c, tcoords), Tangent(tangent), Binormal(binormal) { }
+ //! constructor from S3DVertex
+ S3DVertexTangents(const S3DVertex& o) : S3DVertex(o) {}
+
//! Tangent vector along the x-axis of the texture
core::vector3df Tangent;