mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 07:39:19 +02:00
maintenance: settings item refactoring, include dependencies fixes
This commit is contained in:
4
sun.cpp
4
sun.cpp
@@ -3,7 +3,7 @@
|
||||
#include "sun.h"
|
||||
#include "globals.h"
|
||||
#include "mtable.h"
|
||||
#include "usefull.h"
|
||||
#include "utilities.h"
|
||||
#include "world.h"
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -50,7 +50,7 @@ void
|
||||
cSun::update() {
|
||||
|
||||
move();
|
||||
glm::vec3 position( 0.f, 0.f, -2000.f * Global::fDistanceFactor );
|
||||
glm::vec3 position( 0.f, 0.f, -2000.f * Global.fDistanceFactor );
|
||||
position = glm::rotateX( position, glm::radians( static_cast<float>( m_body.elevref ) ) );
|
||||
position = glm::rotateY( position, glm::radians( static_cast<float>( -m_body.hrang ) ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user