From 935b56da2ebbdd54736ce4e8de6cd5e7d1ba30e0 Mon Sep 17 00:00:00 2001 From: Anselme Date: Fri, 3 Jul 2015 21:22:03 +0200 Subject: [PATCH] bump mapping tests --- myglwidget.cpp | 1 - phong.frag | 13 +++++++------ texture.cpp | 14 +++++++------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/myglwidget.cpp b/myglwidget.cpp index d141f04..bff5317 100644 --- a/myglwidget.cpp +++ b/myglwidget.cpp @@ -64,7 +64,6 @@ Scene* MyGLWidget::buildScene() scene->addEntity(myEntity); scene->addDirectionnalLight(glm::vec3(6, 4, -4), glm::vec3(0.7f, 0.6f, 0.4f)); // sun - scene->addPointLight(glm::vec3(0, 0, 4), glm::vec3(0.7f, 0.6f, 0.4f)); return scene; } diff --git a/phong.frag b/phong.frag index 281702a..a981442 100644 --- a/phong.frag +++ b/phong.frag @@ -39,12 +39,13 @@ vec3 computeLight(in vec3 kd, in vec3 ks, in float ns, in vec3 color, in vec3 no void main(void) { int i; - vec3 kd = vec3(texture2D(baseTexture, varTexCoord)); - vec3 light = 0.1f*kd; - for(i=0; i