Changeset 2907 for code/branches/questsystem5/src/orxonox/tools/Mesh.cc
- Timestamp:
- Apr 8, 2009, 12:36:08 AM (16 years ago)
- Location:
- code/branches/questsystem5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem5
- Property svn:mergeinfo changed
-
code/branches/questsystem5/src/orxonox/tools/Mesh.cc
r2662 r2907 35 35 #include <cassert> 36 36 37 #include "core/ Core.h"37 #include "core/GameMode.h" 38 38 #include "util/Convert.h" 39 39 #include "util/String.h" … … 64 64 this->scenemanager_->destroyEntity(this->entity_); 65 65 66 if ( Core::showsGraphics())66 if (GameMode::showsGraphics()) 67 67 { 68 68 try … … 70 70 this->entity_ = this->scenemanager_->createEntity("Mesh" + convertToString(Mesh::meshCounter_s++), meshsource); 71 71 this->entity_->setCastShadows(this->bCastShadows_); 72 73 this->entity_->setNormaliseNormals(true); 74 /* 75 Excerpt from Ogre forum: 76 "Note that the above is only for the fixed function pipeline. 77 If/when you get into shaders, you'll need to manually normalize() the normal inside the vertex or pixel shader." 78 79 I don't know exactly what this means, but I put this here if there will be problems with shaders. 80 */ 72 81 } 73 82 catch (...)
Note: See TracChangeset
for help on using the changeset viewer.