dungeon_crawler

diff prototype/src/light.cc @ 25:527fede30057

- fixed sphere rendering (PointLight::draw) - added config argument options - fixed macosx compilation
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 25 Aug 2012 02:16:08 +0300
parents fa8f89d06f6f
children cbf86e5198a9
line diff
     1.1 --- a/prototype/src/light.cc	Thu Aug 23 18:03:11 2012 +0300
     1.2 +++ b/prototype/src/light.cc	Sat Aug 25 02:16:08 2012 +0300
     1.3 @@ -124,9 +124,9 @@
     1.4  	float phi = v * M_PI;
     1.5  
     1.6  	Vector3 res;
     1.7 -	res.x = sin(theta) * cos(phi);
     1.8 -	res.y = sin(theta);
     1.9 -	res.z = cos(theta) * cos(phi);
    1.10 +	res.x = sin(theta) * sin(phi);
    1.11 +	res.y = cos(phi);
    1.12 +	res.z = cos(theta) * sin(phi);
    1.13  	return res;
    1.14  }
    1.15