commit 1cb06957726f890a351b6541af9d362e7c33df41 parent 9cda1602225dfcbd845976d6fba4d4400e80111c Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Nov 26 22:46:38 +0200 FAR_PLANE_DEPTH Diffstat:
bsp.cc | | | 2 | +- |
hm.cc | | | 2 | +- |
mod_btt.cc | | | 2 | +- |
diff --git a/bsp.cc b/bsp.cc @@ -332,7 +332,7 @@ extern "C" GAME_INIT( game_init ) { } static m4 camera_to_vp( v3 position, v3 angles ) { - const m4 P = m4_perspective( 120.0f, ( float ) WIDTH / ( float ) HEIGHT, NEAR_PLANE_DEPTH, 10000.0f ); + const m4 P = m4_perspective( 120.0f, ( float ) WIDTH / ( float ) HEIGHT, NEAR_PLANE_DEPTH, FAR_PLANE_DEPTH ); return m4_translation( -position ) * m4_rotz( -angles.y ) * m4_rotx( -angles.x ) * P; } diff --git a/hm.cc b/hm.cc @@ -270,7 +270,7 @@ extern "C" GAME_FRAME( game_frame ) { terrain_update( &game->tm, game->pos ); - m4 P = m4_perspective( 120.0f, ( float ) WIDTH / ( float ) HEIGHT, NEAR_PLANE_DEPTH, 10000.0f ); + m4 P = m4_perspective( 120.0f, ( float ) WIDTH / ( float ) HEIGHT, NEAR_PLANE_DEPTH, FAR_PLANE_DEPTH ); m4 V = camera_to_view( game->pos, game->angles ); m4 VP = V * P; // TODO: WTF diff --git a/mod_btt.cc b/mod_btt.cc @@ -197,7 +197,7 @@ extern "C" GAME_INIT( game_init ) { } static m4 camera_to_vp( v3 position, v3 angles ) { - const m4 P = m4_perspective( 120.0f, ( float ) WIDTH / ( float ) HEIGHT, NEAR_PLANE_DEPTH, 10000.0f ); + const m4 P = m4_perspective( 120.0f, ( float ) WIDTH / ( float ) HEIGHT, NEAR_PLANE_DEPTH, FAR_PLANE_DEPTH ); return m4_translation( -position ) * m4_rotz( -angles.y ) * m4_rotx( -angles.x ) * P; }