rayzor

diff src/snode.cc @ 17:79609d482762

the renderer renders, also fixed an unnoticed matrix conversion problem between scenegraph and min3d
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 14 Apr 2014 07:34:45 +0300
parents a9a948809c6f
children
line diff
     1.1 --- a/src/snode.cc	Sun Apr 13 09:54:51 2014 +0300
     1.2 +++ b/src/snode.cc	Mon Apr 14 07:34:45 2014 +0300
     1.3 @@ -192,7 +192,7 @@
     1.4  {
     1.5  	m3d_matrix_mode(M3D_MODELVIEW);
     1.6  	m3d_push_matrix();
     1.7 -	m3d_mult_matrix(get_matrix()[0]);
     1.8 +	m3d_mult_transpose_matrix(get_matrix()[0]);
     1.9  }
    1.10  
    1.11  void SceneNode::post_draw() const
    1.12 @@ -228,7 +228,7 @@
    1.13  	}
    1.14  }
    1.15  
    1.16 -bool SceneNode::intersect(const Ray &ray, float *dist) const
    1.17 +bool SceneNode::intersect(const Ray &ray, RayHit *hit) const
    1.18  {
    1.19  	return false;
    1.20  }