Commit Graph

70 Commits

Author SHA1 Message Date
81078a6b49 Add ostream operator<< for glm::vec{2,3,4} 2019-04-02 23:27:59 +02:00
b6f053466d "Fix" alpha blending in framebuffer 2019-04-02 23:26:02 +02:00
355aa1d62d Remove timestamps.h, minor formatting 2019-04-02 23:25:12 +02:00
e97dfefc96 Add grain to post-shader 2019-04-01 13:09:09 +02:00
2857b5a31c Add chromatic abberation to post shader 2019-04-01 13:08:28 +02:00
e7a0d74312 Add vignette to post shader 2019-04-01 13:07:39 +02:00
c695d96158 Add depth of field to post shader 2019-04-01 13:06:56 +02:00
8a48b59c0b Calculate the focus factor z in the post shader 2019-04-01 13:05:12 +02:00
f275aef0b0 Add a framebuffer which the scene is rendered to. Render this framebuffer to screen afterwards 2019-03-31 23:47:16 +02:00
fb9ff7c829 Slightly tweak camera in scene 2019-03-31 23:41:13 +02:00
d8c56edc93 Add glutil helper for making the post-prosessing shader mesh 2019-03-31 23:40:10 +02:00
5d07aba7c4 Add some time usage statistics and minor cleanup and formatting 2019-03-31 23:39:34 +02:00
b29537273b Add backlights to car, and point components to frontlights 2019-03-29 10:41:33 +01:00
0f702ea259 Hide trees and grass in the path of the car 2019-03-29 10:12:31 +01:00
213ef68757 Prettify some of the vector math in scene.cpp 2019-03-29 10:10:56 +01:00
7f973533e3 Change the scene into a night scene with the car driving along the hill 2019-03-28 09:41:33 +01:00
faa69754f8 Make the first light color affect the emissive colors, and fix bilinear filtering in PNGImage 2019-03-28 09:40:40 +01:00
6c7e6de5a8 fix how reflexiveness is applied to materials and scenenodes 2019-03-28 09:39:38 +01:00
199765e112 Add support for spot lights with a fixed direction in model space 2019-03-28 09:38:16 +01:00
383d5d3f62 Further separate the render logic and the scene logic
With some cleanup
2019-03-28 09:36:49 +01:00
74ffe23551 Add support for rim backlights 2019-03-28 09:35:22 +01:00
86118a34f4 Add capabilities to read values from PNGImage as if they where textures 2019-03-22 23:52:21 +01:00
2164551e25 Cleanup in the shaders, making them look prettier and a bit more optimized 2019-03-22 23:50:03 +01:00
84cbd5e5c7 Fix transparancy check for nodes
The previous method tried to read from meshes which had been freed from memory
2019-03-22 18:02:29 +01:00
b4e66809cb Performance optimizations, caching uniforms and bound textures and avoiding uploding them if they're already set. 2019-03-22 17:07:41 +01:00
2cac6e1766 Remove noise from timeutils.cpp 2019-03-22 00:08:03 +01:00
0475f17110 Small optimization, no having to recompute a matrix for all objects 2019-03-22 00:05:50 +01:00
a5bfa4c237 rtags json compile commands export 2019-03-22 00:05:16 +01:00
97adb2fd3b Add support for transparent mesh sorting 2019-03-22 00:04:50 +01:00
2ade6919d1 Add texture support for models 2019-03-22 00:01:14 +01:00
8f7f0313f5 Prettify and embetter the mouse callback in scene.cpp 2019-03-21 23:58:28 +01:00
8801414e34 rename gamelogic into renderlogic 2019-03-21 08:41:24 +01:00
e0253940bd Move the scene out of gamelogic into scene.cpp 2019-03-21 01:11:59 +01:00
d7df5e5ab1 Minor cleanups and fix spotlights 2019-03-20 00:21:51 +01:00
4fbf2f296c Move implementation of function from scenenode hpp file to cpp file 2019-03-19 20:25:23 +01:00
1d7c297257 Minor modifications to the scene 2019-03-19 20:24:59 +01:00
da4d088d9d Add texture coordinates to spheres 2019-03-19 20:23:16 +01:00
5518d8e7ee Add reflection mapping 2019-03-19 20:23:16 +01:00
8fc773e0f8 Add material struct, making it easier to apply properties thoughout the scene 2019-03-19 20:22:58 +01:00
3a6181f239 Revamp color system, again. Moving color components to scene objects instead 2019-03-19 20:11:52 +01:00
50e3b60c28 Add model loader, modify scene to load a car 2019-03-18 11:50:25 +01:00
29defbaba9 Add vertex color array 2019-03-18 11:48:11 +01:00
86f339ef56 Fix CRLF to LF 2019-03-17 15:30:21 +01:00
54cd22ff57 Add changes to the scene, using the displacement map
in addition: fix the normals of the cube generator
2019-03-17 15:25:37 +01:00
c9e4332a65 Add displacement mapping with TBN being affected 2019-03-17 15:17:44 +01:00
15dfce421e Fix specular light component
account for the component being negative, and fix a typo
2019-03-16 20:50:39 +01:00
02ab58ecc9 Add in new stuff to the scene 2019-03-16 20:14:24 +01:00
7135ebab6b Revamp the shader and lighting system 2019-03-16 20:12:35 +01:00
74d65ee092 Remove old scene 2019-03-16 20:09:17 +01:00
66458551c6 Add a plain to look at 2019-03-16 18:03:41 +01:00