Commit Graph

55 Commits

Author SHA1 Message Date
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
c699330ab5 Move hudNode out of root node, remove HUD node type, make main loop fetch window size and propagate it though update and render calls 2019-03-16 18:01:10 +01:00
ce277dfce5 Chang the custom node shaders to be inherited by the children if left to nullptr 2019-03-16 16:48:06 +01:00
32ee578082 Fix insert to normals in generateSegmentedPlane using wrong end iterator 2019-03-16 16:35:13 +01:00
019bc2919e Move default values from constructor in SceneNode 2019-03-16 16:33:20 +01:00
5f705ff11c Fix tangent and bitangent generation 2019-03-16 16:32:13 +01:00
3141f6aca0 Allow to set mirror repeat on textures, move texture loading into global scope 2019-03-16 00:07:54 +01:00
4a9653642e Add method to generate a plane mesh, planned for heightmaps 2019-03-15 23:58:43 +01:00
0bd6cdf6a8 Add perlin noise generator 2019-03-15 21:23:23 +01:00
06e6ce7494 cleanup 2019-03-15 21:22:41 +01:00
eac8fcdf9e Clean up VAO and texture IDs. I don't want to manage those 2019-03-15 18:09:20 +01:00
1b05c0ac82 Move MV transform of lights from fragmentshader to cpu 2019-03-15 17:29:59 +01:00
da7a29a2d1 Make it possible ot have different shaders along scene graph 2019-03-15 16:45:06 +01:00
88376587e5 Clean up some types here and there 2019-03-15 16:34:17 +01:00
e00637d46d Make uniforms named 2019-03-15 16:26:31 +01:00
9378c685a8 Do ex2 2019-03-14 12:43:41 +01:00