intravenous

diff src/game.cc @ 5:aab0d8ea21cd

normalmap and sortof subsurface shader
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 22 Apr 2012 06:26:08 +0300
parents c6a6a64df6de
children 2723dc026c4f 0f305fc0b548
line diff
     1.1 --- a/src/game.cc	Sun Apr 22 05:20:03 2012 +0300
     1.2 +++ b/src/game.cc	Sun Apr 22 06:26:08 2012 +0300
     1.3 @@ -6,6 +6,8 @@
     1.4  #include "camera.h"
     1.5  #include "cockpit.h"
     1.6  
     1.7 +static const Vector3 fog_color{0.64, 0.1, 0.1};
     1.8 +
     1.9  static Vein *vein;
    1.10  static Ship ship;
    1.11  
    1.12 @@ -35,6 +37,9 @@
    1.13  	if(!vein->init()) {
    1.14  		return false;
    1.15  	}
    1.16 +	vein->set_fog_color(fog_color);
    1.17 +
    1.18 +	glClearColor(fog_color.x, fog_color.y, fog_color.z, 1);
    1.19  
    1.20  	return true;
    1.21  }