Commit Graph

1062 Commits

Author SHA1 Message Date
Faerbit
3b25514233 Removing out gl_FragDepth as nvidia driver complains about it. 2016-04-15 10:44:26 +02:00
Faerbit
45d969c16e Removing -O2 flag because it breaks the windows build. 2015-06-04 11:52:44 +02:00
Faerbit
fe8b0a57cd Optimized scheduling once again. 2015-06-04 11:22:27 +02:00
Faerbit
3437ce6173 Updated glfw to version 3.1.1. 2015-06-03 23:15:52 +02:00
Faerbit
8452d18575 Fixing a bug in the scheduling. 2015-06-03 14:05:57 +02:00
Faerbit
4c40ddd12d Simplifying if condition. 2015-06-03 11:23:17 +02:00
Faerbit
00a08bf5f0 Fixing a crash when maxShadowRenderCount is set to one. 2015-06-03 02:25:47 +02:00
Faerbit
52ea40100f Correcting scheduling of shadows. 2015-06-03 02:18:31 +02:00
Faerbit
4ba056c6d9 Correctly intializing farPlane variable in Level. 2015-06-03 02:12:00 +02:00
Faerbit
67b44042bd Made getClosestLights output more lights to take advantage of the higher maxShadowSampleCount. 2015-06-02 21:37:58 +02:00
Faerbit
1ef8047f42 Implemented a function to check how high the maxShadowSampleCount should be. 2015-06-02 21:14:54 +02:00
Faerbit
b8114ebd91 Increasing maxShadowSampleCount to 26. 2015-06-02 21:14:22 +02:00
Faerbit
a6876f0872 Optimizing scheduling of shadow renders. 2015-06-02 20:46:21 +02:00
Faerbit
5f779ea3d5 Fixing moving shadows of flames once again. 2015-06-02 20:15:48 +02:00
Faerbit
bedc836cb0 Merge branch 'master' of github.com:Faerbit/Saxum 2015-06-02 19:33:23 +02:00
Faerbit
56ca9d694b Added a little bit of input validation. 2015-06-02 18:39:17 +02:00
Fabian
d752b34dfc Lowering default graphics options. 2015-06-02 17:43:41 +02:00
Faerbit
b55a5e1906 Merge branch 'shadow-renderqueue' 2015-06-02 17:39:08 +02:00
Faerbit
ea8e7b6048 Fixing the rendering of the shadows. Closes #10. 2015-06-02 17:36:55 +02:00
Faerbit
e8c1dee3b5 Improved scheduling of point lights for the render queue by fixing a bug. 2015-06-02 00:33:55 +02:00
Faerbit
819584ef15 Implemented updating of shadow render queue. Doesn't work satisfactory right now. (#10) 2015-06-02 00:18:22 +02:00
Faerbit
ea194309ef Moving shadows of flames correctly with wind. 2015-06-01 22:35:05 +02:00
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
2a09c7f83c Fixing wrong shader getting used. 2015-06-01 13:35:23 +02:00
Faerbit
3fffa4c4ca Removing code meant for shadow-renderqueue branch. 2015-06-01 13:29:08 +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