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

build 170628. enabled support for specular component in lighting calculations

This commit is contained in:
tmj-fstate
2017-06-28 21:02:54 +02:00
parent 8e37307ff5
commit 49aad85597
20 changed files with 249 additions and 198 deletions

7
sun.h
View File

@@ -3,7 +3,6 @@
#include "windows.h"
#include "GL/glew.h"
#include "GL/wglew.h"
#include "dumb3d.h"
//////////////////////////////////////////////////////////////////////////////////////////
@@ -20,9 +19,9 @@ public:
void update();
void render();
// returns location of the sun in the 3d scene
Math3D::vector3 getPosition() { return m_position; }
glm::vec3 getPosition() { return m_position; }
// returns vector pointing at the sun
Math3D::vector3 getDirection();
glm::vec3 getDirection();
// returns current elevation above horizon
float getAngle();
// returns current intensity of the sun
@@ -98,5 +97,5 @@ protected:
celestialbody m_body;
observer m_observer;
Math3D::vector3 m_position;
glm::vec3 m_position;
};