Commit Graph

70 Commits

Author SHA1 Message Date
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
Faerbit
d8da75e9fb Moving MVP calculation to the CPU side. 2014-12-15 11:45:31 +01:00
Faerbit
cad4a95a4e Replacing buildFrustum with standard glm call. 2014-12-15 11:22:32 +01:00
Faerbit
b662106e5f Implemented cube map depth rendering from lighting positions. 2014-12-15 02:09:33 +01:00
Faerbit
17b8445a2f Made getLights return a pointer to avoid copying around large amounts of light data every frame. 2014-12-15 01:12:51 +01:00
Faerbit
e0404b091d Init graphics with the level instead of passing it to the render function everytime. 2014-12-15 01:05:46 +01:00
Steffen Fündgens
80f90175eb Changed fogColor to fogColour. Moved some global Parameters to the xml. 2014-12-12 15:41:17 +01:00
Faerbit
5ab0897653 Removing stencil buffer from depthTextures. 2014-12-12 02:19:41 +01:00
Faerbit
5398edf8e6 Setting wrap mode of depthTextures to CLAMP_TO_EDGE to remove seams. 2014-12-04 17:39:35 +01:00
Faerbit
867b1e4a60 Implemented cascaded shadow mapping. 2014-12-04 17:19:58 +01:00
Faerbit
d4c0c038d4 Disable culling because it seems to give slightly worse FPS. 2014-12-04 14:46:39 +01:00
Faerbit
566c8e7d38 Adding culling. 2014-12-04 13:23:25 +01:00
Faerbit
c88ea7cee8 Changing shadow map sampler from sampler2D to sampler2Dshadow and removing now useless colour texture. 2014-12-04 13:21:20 +01:00
Faerbit
d8edfd2ea9 Implemented basic shadows for sun light. Also fixed bug with far plane always staying the same. 2014-12-04 01:13:59 +01:00
Faerbit
a42c64b535 Moving shader management completely into graphics. 2014-12-01 17:49:59 +01:00
Faerbit
e94dbb7fe8 Removing spammy comments. 2014-12-01 17:44:58 +01:00
Faerbit
deacb8169d Adding namespacing. 2014-12-01 17:40:39 +01:00
Faerbit
3e23b99506 Removing useless includes. 2014-12-01 17:40:06 +01:00
Faerbit
08bfbdd839 You can render objects with multiple shaders now. 2014-11-28 00:17:56 +01:00
Faerbit
7c8b301fc6 Changed fog functions a little bit more. Looks nice enough. 2014-11-25 13:54:00 +01:00
Faerbit
641f94b715 Changed skybox to skydome. 2014-11-22 00:39:58 +01:00
Faerbit
6ca47cbdfe Improved fog a little bit. 2014-11-21 02:46:02 +01:00
Faerbit
235cde0d74 Added skybox and refined fog a bit. Fog still needs a lot of work. 2014-11-21 02:38:03 +01:00
Faerbit
94271dd9dd Implemented simple fog. 2014-11-19 01:58:48 +01:00
Fabian Klemp
c87d62cae9 Added directional lighting. 2014-11-17 17:51:15 +01:00
Fabian Klemp
0a0dcd90f8 Merge branch 'master' of github.com:Faerbit/swp
Conflicts:
	camera.cc
	graphics.cc
2014-11-17 13:31:01 +01:00
Fabian Klemp
a19039426c Camera now returns a viewing vector. 2014-11-17 13:29:41 +01:00
Faerbit
3ddcb72d5a Reenabling resizeCallback. 2014-11-15 15:19:48 +01:00
Faerbit
4686f94082 Changing code to work with getCamera using pointers now. 2014-11-15 14:55:11 +01:00