Commit Graph

1038 Commits

Author SHA1 Message Date
Faerbit
b280ad8c12 Small performance optimization. 2015-06-01 16:17:37 +02:00
Faerbit
90dbd52aca Implemented rendering of shadow render queue (#10). 2015-06-01 15:47:30 +02:00
Faerbit
592f84b548 Implemented the the initilization of the shadow render queue.(#10) 2015-06-01 10:48:56 +02:00
Faerbit
836f75d7fe Various cleanups. 2015-06-01 10:45:15 +02:00
Faerbit
f389aa2f4a Fixed pointlight shadows not getting rendered correctly. 2015-06-01 00:57:36 +02:00
Faerbit
4a35c4feba Increase maximum possible point light shadows to 15. 2015-05-31 21:31:31 +02:00
Faerbit
53e8e6d719 Fixing a memory leak by converting pointers to smart pointers. 2015-05-31 21:17:46 +02:00
Faerbit
b8db45fc7c Reenabled bias calculation depeding on distance. 2015-05-31 20:31:12 +02:00
Faerbit
34cac6f464 Moving torch because of shadow artifacts. 2015-05-31 18:46:44 +02:00
Faerbit
5dbf839f76 Reverting to old way when to sample the directional shadow, because of a bug introduced by this. 2015-05-31 17:51:11 +02:00
Faerbit
806182835f Changed wind direction because of flames clipping into the terrain. 2015-05-31 17:36:58 +02:00
Faerbit
52a36c9b18 Added additional directional shadow maps for better looking sun shadows. 2015-05-31 17:36:21 +02:00
Faerbit
1f1741effb Added poison sampling to point light shadows. Closes #11. 2015-05-31 16:34:14 +02:00
Faerbit
96f146d6f0 Adding optimization flags to release build. 2015-05-31 15:52:00 +02:00
Faerbit
23618a2fa8 Added additional torches to better light some previously too dark areas. 2015-05-31 15:42:21 +02:00
Faerbit
030f8b298a Increased the geometry resolution of the flames. 2015-05-31 15:23:54 +02:00
Faerbit
c8ba61ca56 Performance optimization for deciding when the directional shadow gets rendered. 2015-05-28 15:03:08 +02:00
Faerbit
a8ce6916e7 Refactored level.cc to use the new getSurroundingChunks function. 2015-05-28 11:23:54 +02:00
Faerbit
b110551db6 Added a parameter to getSurroundingChunks to limit the chunkRenderDistance. 2015-05-28 11:23:27 +02:00
Faerbit
9ea1630057 Fixed a bug in getSurroundingChunks. 2015-05-28 11:16:30 +02:00
Faerbit
32b9d6597e Enable debug symbols for debug compilation. 2015-05-28 10:42:12 +02:00
Faerbit
b6467a92a3 Added getSurroundingChunks method to level. 2015-05-27 10:27:08 +02:00
Faerbit
0bee5f915d Removing useless include. 2015-05-26 21:32:37 +02:00
Faerbit
536ffc899e Fixing game not getting scaled correctly in fullscreen. 2015-05-16 13:54:01 +02:00
Faerbit
a56907a956 Fixing crash in fullscreen. 2015-05-16 12:05:37 +02:00
Faerbit
5a1ab063b7 Removing last mutex. 2015-04-25 23:27:12 +02:00
Faerbit
a173e1b9eb Making constant variable constant. 2015-04-25 22:56:11 +02:00
Faerbit
95ce45c944 Make packaging fail if compilation failed. 2015-04-25 22:48:45 +02:00
Faerbit
faf19aa424 Should have been in the last commit. 2015-04-25 22:42:44 +02:00
Faerbit
9b89007674 Removing mutexes because threading is going to be implemented differently.(#6) 2015-04-25 22:38:44 +02:00
Faerbit
40dfbf33d9 Updating loading screen during loading. 2015-04-25 22:29:37 +02:00
Faerbit
96a8943cb7 Protected some functions of graphics with the init_mutex. 2015-04-12 21:56:04 +02:00
Faerbit
b52bef795a Added init mutex to graphics. 2015-04-12 21:51:11 +02:00
Faerbit
9b2ca4d1d3 Made sun brighter during sun rise. 2015-04-12 21:16:17 +02:00
Faerbit
93f790ec22 Simplifing object render method by givin the skydome day texture it's own texture unit. 2015-04-12 21:06:59 +02:00
Faerbit
9b57eb0df1 Moving resizing of loading screen to resize method. 2015-04-12 20:16:24 +02:00
Faerbit
2962acfded Made sun shine through the fog. 2015-03-27 15:05:01 +01:00
Faerbit
d642582956 Protecting some functions with the light_mutex. 2015-03-24 20:41:38 +01:00
Faerbit
127ee7a6ca Adding mutex to level. 2015-03-24 20:37:56 +01:00
Faerbit
fc2ce96771 Moving updateClosestLights() to level class. 2015-03-24 19:50:26 +01:00
Faerbit
2b2e05f009 Protecting all member functions of entity class with the mutex. 2015-03-24 19:12:33 +01:00
Faerbit
5546abd24a Adding mutex to entity class. 2015-03-24 19:09:39 +01:00
Faerbit
796db123b7 Removing useless assignment. 2015-03-24 19:09:14 +01:00
Faerbit
b39e6702cc Changing default init of camera. 2015-03-24 19:08:49 +01:00
Faerbit
6d167a2d2a Removing commented code. 2015-03-24 18:29:28 +01:00
Faerbit
319b57bf7a Removing useless assignment. 2015-03-22 13:49:25 +01:00
Faerbit
300f14c752 Fixing mismatching deallocation. 2015-03-22 13:25:43 +01:00
Faerbit
3de85042d0 Prettified sun rise. 2015-03-21 21:46:58 +01:00
Faerbit
2a2e89d445 Changed when light contributions are not taken into account. Increased FPS. 2015-03-21 20:55:21 +01:00
Faerbit
78972a87bf Fixed water plane not getting rendered after introducing rendering queue. 2015-03-21 19:02:24 +01:00