[Orxonox-commit 199] r2870 - trunk/src/orxonox/tools
bknecht at orxonox.net
bknecht at orxonox.net
Mon Mar 30 23:35:53 CEST 2009
Author: bknecht
Date: 2009-03-30 21:35:53 +0000 (Mon, 30 Mar 2009)
New Revision: 2870
Modified:
trunk/src/orxonox/tools/Mesh.cc
Log:
additional commentary to my last commit. maybe useful in the future, maybe useless as we already solved that issue
Modified: trunk/src/orxonox/tools/Mesh.cc
===================================================================
--- trunk/src/orxonox/tools/Mesh.cc 2009-03-30 21:34:51 UTC (rev 2869)
+++ trunk/src/orxonox/tools/Mesh.cc 2009-03-30 21:35:53 UTC (rev 2870)
@@ -69,7 +69,15 @@
{
this->entity_ = this->scenemanager_->createEntity("Mesh" + convertToString(Mesh::meshCounter_s++), meshsource);
this->entity_->setCastShadows(this->bCastShadows_);
+
this->entity_->setNormaliseNormals(true);
+ /*
+ Excerpt from Ogre forum:
+ "Note that the above is only for the fixed function pipeline.
+ If/when you get into shaders, you'll need to manually normalize() the normal inside the vertex or pixel shader."
+
+ I don't know exactly what this means, but I put this here if there will be problems with shaders.
+ */
}
catch (...)
{
More information about the Orxonox-commit
mailing list