mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
camera frustum
This commit is contained in:
2
EU07.cpp
2
EU07.cpp
@@ -93,7 +93,7 @@ void window_resize_callback(GLFWwindow *window, int w, int h)
|
||||
{
|
||||
Global::ScreenWidth = w;
|
||||
Global::ScreenHeight = h;
|
||||
Global::fDistanceFactor = h / 768.0f; // not sure if this is really something we want to use
|
||||
Global::fDistanceFactor = std::max( 0.5f, h / 768.0f ); // not sure if this is really something we want to use
|
||||
glViewport(0, 0, w, h);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user