Changeset 8548 in orxonox.OLD for branches/terrain/src/world_entities
- Timestamp:
- Jun 16, 2006, 11:35:49 PM (19 years ago)
- Location:
- branches/terrain/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/world_entities/camera.cc
r8349 r8548 34 34 this->subscribeEvent(ES_GAME, KeyMapper::PEV_VIEW5); 35 35 36 this->setFovy( 90);36 this->setFovy(60.0); 37 37 this->setAspectRatio(1.2f); 38 this->setClipRegion( .1, 100.0f );38 this->setClipRegion( .1, 80.0f ); 39 39 40 40 this->setViewMode(Camera::ViewNormal); -
branches/terrain/src/world_entities/terrain_entity.cc
r8328 r8548 140 140 void TerrainEntity::loadLightmap( const std::string& _lightFile ) 141 141 { 142 terrain->setLightmap( _lightFile ); 142 Material *mat = new Material( "TERR_LM" ); 143 mat->setDiffuse( 1.0f, 1.0f, 1.0f ); 144 mat->setAmbient( 1.0f, 1.0f, 1.0f ); 145 mat->setDiffuseMap( _lightFile, GL_TEXTURE_2D, 0 ); 146 mat->setDiffuseMap( std::string( "pictures/lehm.png" ), GL_TEXTURE_2D, 1 ); 147 terrain->addMaterial( mat ); 143 148 } 144 149
Note: See TracChangeset
for help on using the changeset viewer.