Commit Graph

34 Commits

Author SHA1 Message Date
Faerbit
153a619035 Point light shadows for the first point light does something. Seems pretty broken. 2014-12-15 15:58:55 +01:00
Faerbit
fd0a5386e5 Reducing OpenGL version number to 3.2 again. 2014-12-15 15:10:19 +01:00
Faerbit
a707c6c2bf Now using OpenGL 4.0. 2014-12-15 13:31:31 +01:00
Faerbit
1957f96fc3 MVPs are only needed for directional shadows and not for point light shadows (forgot one thing. 2014-12-15 13:23:35 +01:00
Faerbit
51ddcffaf0 Moved calculation of shadowMVP to the CPU side. 2014-12-15 12:41:30 +01:00
Faerbit
d8da75e9fb Moving MVP calculation to the CPU side. 2014-12-15 11:45:31 +01:00
Faerbit
202323f054 Limited light sources to 32 instead of 128. 2014-12-15 01:16:43 +01:00
Faerbit
11b99dfe82 Put some code in a function. 2014-12-05 00:57:17 +01:00
Faerbit
867b1e4a60 Implemented cascaded shadow mapping. 2014-12-04 17:19:58 +01:00
Faerbit
88a841f84a Implemented early bailing. 2014-12-04 15:08:08 +01:00
Faerbit
5abc7bf3af Implemented poisson sampling. 2014-12-04 14:53:07 +01:00
Faerbit
80a751f1b5 Improving bias on slopes. 2014-12-04 13:26:06 +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
7c8b301fc6 Changed fog functions a little bit more. Looks nice enough. 2014-11-25 13:54:00 +01:00
Faerbit
c98909631a Changed fog function from exp to linear. 2014-11-25 13:24:02 +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
Faerbit
52dc055554 Now using built-in exp function. 2014-11-19 01:58:25 +01:00
Faerbit
d18cf76cea Changing how the intensity is calculated. 2014-11-19 00:59:33 +01:00
Faerbit
3678c7ef80 Clamping diffuse color for more realistic lighting. 2014-11-19 00:46:51 +01:00
Fabian Klemp
c87d62cae9 Added directional lighting. 2014-11-17 17:51:15 +01:00
Fabian Klemp
f87af894c1 Added alpha shading. 2014-11-17 16:15:56 +01:00
Steffen Fündgens
5cee3e7dd2 added testData to terrain for debugging 2014-11-14 18:32:23 +01:00
Faerbit
2ddf01ede2 Removing hard coded values from graphics and moving it into the properties of object and model. 2014-11-13 01:22:33 +01:00
Faerbit
49acfc4d97 Adding specular part to lighting model. 2014-11-07 11:37:26 +01:00
Faerbit
b74534c62a Only take calculate light contribution with meaningful contributions. 2014-11-04 12:24:19 +01:00
Faerbit
589e0df6ea Shader now respects distance between light source and fragment. 2014-11-04 00:47:35 +01:00
Faerbit
afbf41ea0d Shading now respects colours. 2014-11-03 23:54:35 +01:00
Fabian Klemp
b68a2bb079 Renamed shaders. 2014-10-31 13:06:14 +01:00
Fabian Klemp
769514af88 Got phong shading working. 2014-10-31 12:56:09 +01:00
Faerbit
c505553439 First attempt at Phong shading. Build broken. 2014-10-31 10:38:57 +01:00
Faerbit
6c712579d8 Import of '003-basic-texturing'. 2014-10-20 17:31:26 +02:00