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

build 180210. light source angle calculation tweak

This commit is contained in:
tmj-fstate
2018-02-10 19:54:22 +01:00
parent 0c880f3d4e
commit 6d3ce4908f
4 changed files with 32 additions and 13 deletions

8
sun.h
View File

@@ -18,13 +18,17 @@ public:
void init();
void update();
void render();
/*
// returns location of the sun in the 3d scene
glm::vec3 getPosition() { return m_position; }
glm::vec3 getPosition();
*/
// returns vector pointing at the sun
glm::vec3 getDirection();
// returns current elevation above horizon
float getAngle();
// returns current intensity of the sun
// return current hour angle
double getHourAngle() const;
// returns current intensity of the sun
float getIntensity();
// sets current time, overriding one acquired from the system clock
void setTime( int const Hour, int const Minute, int const Second );