Browse Source

Fixed color issues

Kenneth van Ewijk 9 years ago
parent
commit
af681b0223
2 changed files with 3 additions and 1 deletions
  1. 2 0
      World.cpp
  2. 1 1
      worlds/small.json

+ 2 - 0
World.cpp

@@ -186,6 +186,8 @@ void World::draw()
 	float lightAmbient[4] = { 0.2, 0.2, 0.2, 1 };
 	glLightfv(GL_LIGHT0, GL_AMBIENT, lightAmbient);
 
+	glColor4f(1, 1, 1, 1);
+
 	skybox->draw();
 
 	heightmap->Draw();

+ 1 - 1
worlds/small.json

@@ -1,7 +1,7 @@
 {
   "world": {
     "heightmap": "worlds/small.png",
-    "skybox": "skyboxes/peaceful/",
+    "skybox": "skyboxes/water/",
     "object-templates": [
       {
         "color": 100,