last stuff

This commit is contained in:
Dofensmirtsz
2016-06-09 12:43:17 +02:00
parent 87e94056cc
commit c3b9e23f3d
4 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ HeightMap::HeightMap(const std::string &file, World* world)
if (valueAt(x, y, GREEN) > 0)
{
world->addLevelObject(new LevelObject(world->getObjectFromValue(valueAt(x, y, GREEN)).first, Vec3f(x, heightAt(x, y), y), Vec3f(0, rand()%360, 0), 1, world->getObjectFromValue(valueAt(x, y, GREEN)).second));
world->addLevelObject(new LevelObject(world->getObjectFromValue(valueAt(x, y, GREEN)).first, Vec3f(x, heightAt(x, y), y), Vec3f(0, 0, 0), 1, world->getObjectFromValue(valueAt(x, y, GREEN)).second));
}
Vec3f normal = ca.cross(ba);