16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 02:09:17 +02:00

build 170506. minor diagnostics, performance and rendering enhancements

This commit is contained in:
tmj-fstate
2017-05-06 14:31:53 +02:00
parent 381eff2e8c
commit fc2fc3e27c
9 changed files with 80 additions and 189 deletions

View File

@@ -167,8 +167,14 @@ opengl_renderer::Render( world_environment *Environment ) {
::glDisable( GL_DEPTH_TEST );
::glDepthMask( GL_FALSE );
::glPushMatrix();
/*
::glTranslatef( Global::pCameraPosition.x, Global::pCameraPosition.y, Global::pCameraPosition.z );
*/
glm::mat4 worldcamera;
World.Camera.SetMatrix( worldcamera );
glLoadIdentity();
glMultMatrixf( glm::value_ptr( glm::mat4( glm::mat3( worldcamera ) ) ) );
// setup fog
if( Global::fFogEnd > 0 ) {
// fog setup