From 856eb747b4c2cc4b6466a8068b25dad723cb64fe Mon Sep 17 00:00:00 2001 From: hiker Date: Thu, 21 Aug 2014 08:01:54 +1000 Subject: [PATCH] Fixed shadows with a hack. --- src/graphics/shadow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/graphics/shadow.cpp b/src/graphics/shadow.cpp index e092f8284..5a6fb5cdb 100644 --- a/src/graphics/shadow.cpp +++ b/src/graphics/shadow.cpp @@ -23,7 +23,8 @@ #include #include -Shadow::Shadow(video::ITexture *texture, scene::ISceneNode *node, float scale = 1.0, float xOffset = 0.0, float yOffset = 0.0) +Shadow::Shadow(video::ITexture *texture, scene::ISceneNode *node, + float scale = 1.0, float xOffset = 0.0, float yOffset = 0.0) { video::SMaterial m; m.setTexture(0, texture); @@ -49,6 +50,7 @@ Shadow::Shadow(video::ITexture *texture, scene::ISceneNode *node, float scale = buffer->recalculateBoundingBox(); m_node = irr_driver->addMesh(m_mesh); + m_node->setPosition(core::vector3df(0, -0.1f, 0)); #ifdef DEBUG m_node->setName("shadow"); #endif