Commit Graph

98 Commits

Author SHA1 Message Date
Faerbit
5fc86f8914 Cull front faces of flames(normals are backwards). 2015-02-28 00:51:20 +01:00
Steffen Fündgens
4870357789 Increased size of directional light shadow map. 2015-02-27 14:37:57 +01:00
Faerbit
b0b2c71139 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
18bd1bda49 Fixed updating of lights. 2015-02-13 17:35:56 +01:00
Fabian Klemp
deb691a6c0 maxShadowRenderCount now works correctly. 2015-02-13 17:09:25 +01:00
Jasper
02aea1f297 corrected camera position for specular lighting 2015-02-13 16:35:35 +01:00
Jasper
6ffc1809ff Merge branch 'master' of github.com:Faerbit/swp 2015-02-13 16:22:06 +01:00
Fabian Klemp
d7d45682a0 Added maxShadowRenderCount. Controls how many shadows get rendered. 2015-02-13 16:20:22 +01:00
Fabian Klemp
30284977da Merge branch 'debug-shadows'
Conflicts:
	graphics.cc
	graphics.hh
	object.cc
2015-02-13 16:02:12 +01:00
Fabian Klemp
0c6c06fe00 Updated how shadows are applied. Looks nice now. 2015-02-13 15:51:49 +01:00
Jasper
dc628f3fc8 added debug Camear (keys L and K to switch) 2015-02-13 15:46:00 +01:00
Steffen Fündgens
47fded52ce Code rework. Basically cleaned up a mess of tabs and whitespaces. 2015-02-13 13:46:41 +01:00
Faerbit
d6d934277f Now only using the 32 closest light sources. 2015-02-12 01:13:26 +01:00
Faerbit
3d51da73f9 Fixed directional shadows. 2015-02-10 00:27:13 +01:00
Faerbit
0664ae9760 Got multiple shadows working. The really ugly way. 2015-02-09 21:29:44 +01:00
Faerbit
b4419b88d2 Changed cube map shadows sampler to a sampler array. 2015-02-09 14:26:04 +01:00
Steffen
9297aa69a4 Now loading the resolution of the shadow cube maps from config.xml. 2015-02-07 20:24:11 +01:00
Faerbit
febb1dbab3 Increased precision of depth textures. 2015-02-04 23:10:51 +01:00
Faerbit
78f4e30f8f Additional cleanup. 2015-02-04 23:08:23 +01:00
Faerbit
f45603fe4c Did a little bit of cleanup. 2015-02-04 22:54:40 +01:00
Faerbit
1f817a7ecd Got Point Light Shadows working. YEEHAW! 2015-02-04 14:27:41 +01:00
Faerbit
d82a8d96bd Changed how depth values are written. Works even less than before. 2015-02-02 19:58:16 +01:00
Faerbit
64b4f52fcc Merge branch 'debug-shadows' of github.com:Faerbit/swp into debug-shadows 2015-01-31 20:02:28 +01:00
Faerbit
f025b69206 Tried correcting an error. Unsure if it will work. 2015-01-31 20:02:23 +01:00
Fabian Klemp
9fde8009e8 Additional debug stuff. 2015-01-30 15:47:07 +01:00
Jasper
477da05464 implimented a rough version of a physics driven camera 2015-01-29 14:10:28 +01:00
Faerbit
f275733eeb Now mirroring the cube face on their own again. 2015-01-28 17:26:02 +01:00
Faerbit
9c8f05e906 Small parameter changes. 2015-01-27 11:14:00 +01:00
Faerbit
cf9e3e2b39 Fixed saving of depthbuffer. 2015-01-26 23:11:04 +01:00
Faerbit
7d21978903 Implemented saving depthbuffer face to png. Doesn't work right now. 2015-01-26 21:48:44 +01:00
Faerbit
00f9091bc3 Updating lights on creation and also using constant. 2015-01-26 00:18:09 +01:00
Faerbit
4cef0b31d3 Updating lights only every half a second now, for performance. 2015-01-26 00:06:31 +01:00
Faerbit
6fa2e4e1b8 Moved all GLFW related stuff to the main files. 2015-01-25 23:29:37 +01:00
Steffen Fündgens
e9390d860b Fixed a drawing bug for the pointlight shadows. 2015-01-23 14:33:04 +01:00
Steffen Fündgens
e1654ded34 Removed unnecessary bind and clear calls. 2015-01-23 14:22:24 +01:00
Steffen Fündgens
f0cf0583e1 Forgot one thing. 2015-01-23 14:08:30 +01:00
Steffen Fündgens
c7931aed20 Fixed mirroring of shadows by inverting coordinates instead of blitting framebuffers(performance...). 2015-01-23 14:00:26 +01:00
Jasper
bea8436a8d Merge branch 'master' of github.com:Faerbit/swp 2015-01-19 18:30:12 +01:00
Steffen Fündgens
92a144d8bb 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
6056663dde some quick updates for the camera before working on buttons 2015-01-19 17:12:58 +01:00
Faerbit
f6a88683b7 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
e23b53e4a2 Calulating fogEnd by farPlane. 2014-12-19 13:27:05 +01:00
Faerbit
2347a4d417 Fixed crashing if no lights are present. 2014-12-19 13:09:25 +01:00
Faerbit
bd4ae93846 Disabled point light shadows, because they look very wrong. 2014-12-15 22:59:13 +01:00
Faerbit
6f91e959b6 Revert "Not using pointlight shadows."
This reverts commit e00cb787c8.
2014-12-15 22:00:23 +01:00
Steffen Fündgens
c593d93ef0 Not using pointlight shadows. 2014-12-15 16:48:42 +01:00
Faerbit
153a619035 Point light shadows for the first point light does something. Seems pretty broken. 2014-12-15 15:58:55 +01:00
Faerbit
02d62712b9 Removing commented code. 2014-12-15 12:55:48 +01:00
Faerbit
51ddcffaf0 Moved calculation of shadowMVP to the CPU side. 2014-12-15 12:41:30 +01:00
Faerbit
8db6e3c6d4 Fixed a parenthesis. 2014-12-15 11:53:31 +01:00