From af681b022305929714383f75674e1fb6589aa775 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Thu, 9 Jun 2016 13:01:03 +0200 Subject: [PATCH] Fixed color issues --- World.cpp | 2 ++ worlds/small.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/World.cpp b/World.cpp index b0e090a..232e145 100644 --- a/World.cpp +++ b/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(); diff --git a/worlds/small.json b/worlds/small.json index 901713b..116df8e 100644 --- a/worlds/small.json +++ b/worlds/small.json @@ -1,7 +1,7 @@ { "world": { "heightmap": "worlds/small.png", - "skybox": "skyboxes/peaceful/", + "skybox": "skyboxes/water/", "object-templates": [ { "color": 100,