erebus

diff liberebus/src/brdf.cc @ 34:d15ee526daa6

- changed the UI font, made it a bit smaller - fixed the text positioning in the status bar - added ThreadPool::clear to remove all pending jobs - fixed the TargetCamera matrix calculation to avoid singularities when the camera looks straight up or down. - fixed ommited normalization in TargetCamera's matrix calculation - added paths/sec display in the status bar
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 08 Jun 2014 08:12:05 +0300
parents b1fc96c71bcc
children c4d48a21bc4a
line diff
     1.1 --- a/liberebus/src/brdf.cc	Sat Jun 07 14:21:56 2014 +0300
     1.2 +++ b/liberebus/src/brdf.cc	Sun Jun 08 08:12:05 2014 +0300
     1.3 @@ -18,7 +18,7 @@
     1.4  	}
     1.5  
     1.6  	tangent = Vector3(1.0f, 0.0f, 0.0f);
     1.7 -	if(fabs(fabs(dot_product(normal, tangent)) - 1.0f) < 1e-4f) {
     1.8 +	if(1.0 - fabs(dot_product(normal, tangent)) < 1e-4f) {
     1.9  		tangent = Vector3(0.0f, 0.0f, 1.0f);
    1.10  	}
    1.11  	Vector3 bitan = cross_product(normal, tangent);