tavli

diff src/object.cc @ 19:37dead56f01e

fixed shadows
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 29 Jun 2015 06:18:45 +0300
parents d6209903454b
children
line diff
     1.1 --- a/src/object.cc	Mon Jun 29 01:29:36 2015 +0300
     1.2 +++ b/src/object.cc	Mon Jun 29 06:18:45 2015 +0300
     1.3 @@ -1,5 +1,6 @@
     1.4  #include "object.h"
     1.5  #include "opengl.h"
     1.6 +#include "shadow.h"
     1.7  
     1.8  Material::Material()
     1.9  	: diffuse(1, 1, 1), specular(0, 0, 0)
    1.10 @@ -81,7 +82,7 @@
    1.11  	glPushAttrib(GL_ENABLE_BIT | GL_DEPTH_BUFFER_BIT);
    1.12  	rop.setup();
    1.13  
    1.14 -	if(sdr) {
    1.15 +	if(sdr && !shadow_pass) {
    1.16  		glUseProgram(sdr);
    1.17  	}
    1.18