some tiny changes

This commit is contained in:
Anselme 2015-12-02 10:44:21 +01:00
parent c3d5e23518
commit a1e6dcc95e
4 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
project(SparrowRenderer) project(SparrowRenderer)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
find_package(OpenGL REQUIRED) find_package(OpenGL REQUIRED)

View File

@ -43,7 +43,7 @@ void main(void) {
#endif #endif
#ifdef POINT_LIGHT #ifdef POINT_LIGHT
lightDirInView = normalize(mat3(viewMatrix)*pointLight - posInView); lightDirInView = normalize(viewMatrix*pointLight - posInView);
halfVecInView = normalize(lightDirInView - posInView); halfVecInView = normalize(lightDirInView - posInView);
#endif #endif

View File

@ -43,6 +43,7 @@ public:
class ArrayScene : public Scene class ArrayScene : public Scene
{ {
protected:
std::vector<Light*> lights; std::vector<Light*> lights;
std::vector<PhongEntity*> entities; std::vector<PhongEntity*> entities;
public: public: