Commit Graph

122 Commits

Author SHA1 Message Date
Faerbit
8d130ee906 Made first attempt at blurring shadows with gaussian blur. Doesn't seem to work right now. Not that important right now. 2015-03-05 16:21:30 +01:00
Faerbit
4eb328d09d Disabled multisampling because we draw to an offscreen fbo anyway. 2015-03-04 23:37:10 +01:00
Faerbit
074132b49d Made use of the night texture. Now blends to night texture if the sun vector is pointing down. 2015-03-04 21:50:47 +01:00
Fabian Klemp
e922780e71 Merge branch 'master' of github.com:Faerbit/swp 2015-03-04 17:47:41 +01:00
Fabian Klemp
b6c1d94cc3 Added sun to skydome. 2015-03-04 17:09:46 +01:00
sfroitzheim
2568a2a69f Merge branch 'master' of https://github.com/Faerbit/swp 2015-03-04 17:09:25 +01:00
sfroitzheim
2c0073eb9f Added torches for the switches plus added the hint to the scene 2015-03-04 17:08:53 +01:00
Fabian Klemp
1ec7f05eca Gave skydome it's own shader. 2015-03-04 16:08:03 +01:00
Faerbit
f4b9d4dc38 Now also blurring the edges of the flames. 2015-03-04 12:13:58 +01:00
Faerbit
bb3267c72a Fixed blurring of flames with stencil buffer. 2015-03-04 11:25:02 +01:00
Faerbit
38292e335d Merge branch 'master' of github.com:Faerbit/swp 2015-03-04 00:55:11 +01:00
Faerbit
2a82f9f2e2 Made first attempt at blurring flames. Conceptually bad, looks very bad. 2015-03-04 00:55:01 +01:00
Faerbit
e54ee77557 Removed now useless stuff from the flame shader. 2015-03-03 23:32:43 +01:00
Faerbit
35b77c9c01 Introduced flame post processing shader. 2015-03-03 23:27:41 +01:00
Steffen
99d77a0e9e Changed array initialization because it did not compile under windows. 2015-03-03 17:37:03 +01:00
Faerbit
40e7dda14a Tried adding normals for color calculation seems wrong. 2015-03-01 19:40:39 +01:00
Faerbit
51d78583d7 Fixed normals. 2015-03-01 18:56:56 +01:00
Faerbit
53557b80c4 Using the color of the lights for the flame color. 2015-03-01 18:45:31 +01:00
Faerbit
f5fd73fd1d Added another two render calls to further increase the number of vertices of the flame. 2015-03-01 18:19:19 +01:00
Faerbit
47db474d4a Should have been in the last commit. 2015-03-01 17:04:13 +01:00
Faerbit
f46d665e17 Enabled multisampling for the window. 2015-03-01 16:43:03 +01:00
Faerbit
ca2ac08a82 Moved glEnables to graphics.init(). 2015-03-01 16:41:46 +01:00
Faerbit
81d2de5344 Fixed popping of directional shadows. 2015-02-28 15:53:12 +01:00
Faerbit
2da70f156d Reintroduced cascaded shadow mapping while also fixing it. The old bug with popping shadows should be fixed now. 2015-02-28 14:40:54 +01:00
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