Added distant environment lighting.

This commit is contained in:
Miguel Angel Astor Romero
2017-01-09 12:54:19 -04:00
parent 74bec05883
commit 71c09ce6cb
4 changed files with 46 additions and 11 deletions

View File

@@ -6,7 +6,7 @@
using namespace glm;
const vec3 BCKG_COLOR = vec3(0.0f, 0.2f, 0.6f);
const vec3 BCKG_COLOR = vec3(1.0f);
float Tracer::random01() const {
return static_cast<float>(rand()) / static_cast<float>(RAND_MAX);