Commit Graph

97 Commits

Author SHA1 Message Date
Steffen Fündgens
6c78c93c2b Increased size of directional light shadow map. 2015-02-27 14:37:57 +01:00
Faerbit
a77e06f8c8 Added simple geometry shader which draws a red triangle which changes it's height over time. 2015-02-24 23:30:59 +01:00
Fabian Klemp
df230ea677 Fixed updating of lights. 2015-02-13 17:35:56 +01:00
Fabian Klemp
fd1f32be6a maxShadowRenderCount now works correctly. 2015-02-13 17:09:25 +01:00
Jasper
3f1616adf1 corrected camera position for specular lighting 2015-02-13 16:35:35 +01:00
Jasper
51e9b26379 Merge branch 'master' of github.com:Faerbit/swp 2015-02-13 16:22:06 +01:00
Fabian Klemp
281466ebd5 Added maxShadowRenderCount. Controls how many shadows get rendered. 2015-02-13 16:20:22 +01:00
Fabian Klemp
599c849bb0 Merge branch 'debug-shadows'
Conflicts:
	graphics.cc
	graphics.hh
	object.cc
2015-02-13 16:02:12 +01:00
Fabian Klemp
55434daa24 Updated how shadows are applied. Looks nice now. 2015-02-13 15:51:49 +01:00
Jasper
75792a5723 added debug Camear (keys L and K to switch) 2015-02-13 15:46:00 +01:00
Steffen Fündgens
e91d045a37 Code rework. Basically cleaned up a mess of tabs and whitespaces. 2015-02-13 13:46:41 +01:00
Faerbit
1d8bbba1ca Now only using the 32 closest light sources. 2015-02-12 01:13:26 +01:00
Faerbit
9afb3595d0 Fixed directional shadows. 2015-02-10 00:27:13 +01:00
Faerbit
282eb32267 Got multiple shadows working. The really ugly way. 2015-02-09 21:29:44 +01:00
Faerbit
c28b35667f Changed cube map shadows sampler to a sampler array. 2015-02-09 14:26:04 +01:00
Steffen
8cc467a806 Now loading the resolution of the shadow cube maps from config.xml. 2015-02-07 20:24:11 +01:00
Faerbit
7c8d149e3a Increased precision of depth textures. 2015-02-04 23:10:51 +01:00
Faerbit
ac19eac671 Additional cleanup. 2015-02-04 23:08:23 +01:00
Faerbit
10082466cf Did a little bit of cleanup. 2015-02-04 22:54:40 +01:00
Faerbit
2e90ac57d8 Got Point Light Shadows working. YEEHAW! 2015-02-04 14:27:41 +01:00
Faerbit
b3e0d5ca47 Changed how depth values are written. Works even less than before. 2015-02-02 19:58:16 +01:00
Faerbit
75464e6819 Merge branch 'debug-shadows' of github.com:Faerbit/swp into debug-shadows 2015-01-31 20:02:28 +01:00
Faerbit
b8dc153f10 Tried correcting an error. Unsure if it will work. 2015-01-31 20:02:23 +01:00
Fabian Klemp
2ddd753575 Additional debug stuff. 2015-01-30 15:47:07 +01:00
Jasper
9c6cd7c59d implimented a rough version of a physics driven camera 2015-01-29 14:10:28 +01:00
Faerbit
a3e6da2ada Now mirroring the cube face on their own again. 2015-01-28 17:26:02 +01:00
Faerbit
114632b015 Small parameter changes. 2015-01-27 11:14:00 +01:00
Faerbit
377372d1c6 Fixed saving of depthbuffer. 2015-01-26 23:11:04 +01:00
Faerbit
7f13e89935 Implemented saving depthbuffer face to png. Doesn't work right now. 2015-01-26 21:48:44 +01:00
Faerbit
65087ece48 Updating lights on creation and also using constant. 2015-01-26 00:18:09 +01:00
Faerbit
4d3db6f285 Updating lights only every half a second now, for performance. 2015-01-26 00:06:31 +01:00
Faerbit
81f94ba221 Moved all GLFW related stuff to the main files. 2015-01-25 23:29:37 +01:00
Steffen Fündgens
f2353d670f Fixed a drawing bug for the pointlight shadows. 2015-01-23 14:33:04 +01:00
Steffen Fündgens
e9e7fe1f7c Removed unnecessary bind and clear calls. 2015-01-23 14:22:24 +01:00
Steffen Fündgens
a4ae90082a Forgot one thing. 2015-01-23 14:08:30 +01:00
Steffen Fündgens
00de8c0e82 Fixed mirroring of shadows by inverting coordinates instead of blitting framebuffers(performance...). 2015-01-23 14:00:26 +01:00
Jasper
099e0c17c7 Merge branch 'master' of github.com:Faerbit/swp 2015-01-19 18:30:12 +01:00
Steffen Fündgens
cf836b151a Mirrored rendering of pointlight shadows, so that they are at the correct positions now, but occlude everything. -- Fabian 2015-01-19 18:22:25 +01:00
Jasper
65a826f2af some quick updates for the camera before working on buttons 2015-01-19 17:12:58 +01:00
Faerbit
1cef3d4d0a Removed Cascaded Shadow Mapping because it is not realistic to get it working in the remaining time. 2015-01-19 00:52:57 +01:00
Faerbit
b16a90bd15 Calulating fogEnd by farPlane. 2014-12-19 13:27:05 +01:00
Faerbit
5b2c4a6bbc Fixed crashing if no lights are present. 2014-12-19 13:09:25 +01:00
Faerbit
799f191485 Disabled point light shadows, because they look very wrong. 2014-12-15 22:59:13 +01:00
Faerbit
76dbdac70c Revert "Not using pointlight shadows."
This reverts commit e00cb787c8.
2014-12-15 22:00:23 +01:00
Steffen Fündgens
e099c231c7 Not using pointlight shadows. 2014-12-15 16:48:42 +01:00
Faerbit
7e31717124 Point light shadows for the first point light does something. Seems pretty broken. 2014-12-15 15:58:55 +01:00
Faerbit
cc93cf7259 Removing commented code. 2014-12-15 12:55:48 +01:00
Faerbit
36f7217288 Moved calculation of shadowMVP to the CPU side. 2014-12-15 12:41:30 +01:00
Faerbit
21009d0032 Fixed a parenthesis. 2014-12-15 11:53:31 +01:00
Faerbit
50c4b16367 Moving MVP calculation to the CPU side. 2014-12-15 11:45:31 +01:00