erebus

diff liberebus/src/object.cc @ 23:56d504cc555a

- debugging scale factor for render size - fixed un-normalized normals after transforms in the SceneNode
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 29 May 2014 07:47:52 +0300
parents e9da2916bc79
children c4d48a21bc4a
line diff
     1.1 --- a/liberebus/src/object.cc	Thu May 29 03:35:04 2014 +0300
     1.2 +++ b/liberebus/src/object.cc	Thu May 29 07:47:52 2014 +0300
     1.3 @@ -16,7 +16,7 @@
     1.4  	Vector3 norm = ((const GeomObject*)obj)->calc_normal(*this);
     1.5  
     1.6  	const Matrix4x4 &xform = node->get_inv_matrix();
     1.7 -	return norm.transformed(Matrix3x3(xform).transposed());
     1.8 +	return norm.transformed(Matrix3x3(xform).transposed()).normalized();
     1.9  }
    1.10  
    1.11  Vector3 RayHit::calc_tangent() const