diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-30 19:50:51 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-30 19:50:51 +0000 |
commit | cf0f21b73e53b4371c42c95e1132b1d3ce69ade5 (patch) | |
tree | f5efa4f20c581ab6a2672666d4b2df4ee9ce2b44 /src/client | |
parent | 04050c1685855a0640c7c0d5147299fadbd2ebe8 (diff) |
minimize opengl transformation matrix by doing eye-location in software
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/targets.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/targets.cc b/src/client/targets.cc index 8dc5c07..541206d 100644 --- a/src/client/targets.cc +++ b/src/client/targets.cc @@ -364,7 +364,7 @@ void draw_target() + plane_normal.y * (entity->state()->location().y - render::Camera::eye().y) + plane_normal.z * (entity->state()->location().z - render::Camera::eye().z); - Vector3f intersection = render::Camera::eye() + (entity->state()->location() - render::Camera::eye()) * t; + Vector3f intersection = (entity->state()->location() - render::Camera::eye()) * t; // draw the target cursor in the frustum front plane, but in real world coordinates const float r = 0.05; |