- Timestamp:
- Nov 7, 2018, 10:21:44 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/shader_HS18/src/libraries/tools/Mesh.cc
r11783 r12076 35 35 #include <OgreSubEntity.h> 36 36 #include <OgreSceneManager.h> 37 #include <OgreHardwareVertexBuffer.h> 37 38 38 39 #include "util/Convert.h" … … 64 65 this->scenemanager_->destroyEntity(this->entity_); 65 66 67 66 68 if (GameMode::showsGraphics()) 67 69 { … … 70 72 this->entity_ = this->scenemanager_->createEntity("Mesh" + multi_cast<std::string>(Mesh::meshCounter_s++), meshsource); 71 73 this->entity_->setCastShadows(this->bCastShadows_); 74 75 76 unsigned short src, dest; 77 if (!this->entity_->getMesh()->suggestTangentVectorBuildParams(Ogre::VertexElementSemantic::VES_TANGENT, src, dest)) 78 { 79 orxout() << "Generate Tanget for \"" << meshsource << '"' << endl; 80 this->entity_->getMesh()->buildTangentVectors(Ogre::VertexElementSemantic::VES_TANGENT, src, dest); 81 // this version cleans mirrored and rotated UVs but requires quality models 82 // mesh->buildTangentVectors(VES_TANGENT, src, dest, true, true); 83 } 84 72 85 } 73 86 catch (...)
Note: See TracChangeset
for help on using the changeset viewer.