Commit Graph

28 Commits

Author SHA1 Message Date
Peder Bergebakken Sundt 50e3b60c28 Add model loader, modify scene to load a car 2019-03-18 11:50:25 +01:00
Peder Bergebakken Sundt 29defbaba9 Add vertex color array 2019-03-18 11:48:11 +01:00
Peder Bergebakken Sundt 86f339ef56 Fix CRLF to LF 2019-03-17 15:30:21 +01:00
Peder Bergebakken Sundt 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
Peder Bergebakken Sundt c9e4332a65 Add displacement mapping with TBN being affected 2019-03-17 15:17:44 +01:00
Peder Bergebakken Sundt 02ab58ecc9 Add in new stuff to the scene 2019-03-16 20:14:24 +01:00
Peder Bergebakken Sundt 7135ebab6b Revamp the shader and lighting system 2019-03-16 20:12:35 +01:00
Peder Bergebakken Sundt 74d65ee092 Remove old scene 2019-03-16 20:09:17 +01:00
Peder Bergebakken Sundt 66458551c6 Add a plain to look at 2019-03-16 18:03:41 +01:00
Peder Bergebakken Sundt 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
Peder Bergebakken Sundt ce277dfce5 Chang the custom node shaders to be inherited by the children if left to nullptr 2019-03-16 16:48:06 +01:00
Peder Bergebakken Sundt 32ee578082 Fix insert to normals in generateSegmentedPlane using wrong end iterator 2019-03-16 16:35:13 +01:00
Peder Bergebakken Sundt 019bc2919e Move default values from constructor in SceneNode 2019-03-16 16:33:20 +01:00
Peder Bergebakken Sundt 5f705ff11c Fix tangent and bitangent generation 2019-03-16 16:32:13 +01:00
Peder Bergebakken Sundt 3141f6aca0 Allow to set mirror repeat on textures, move texture loading into global scope 2019-03-16 00:07:54 +01:00
Peder Bergebakken Sundt 4a9653642e Add method to generate a plane mesh, planned for heightmaps 2019-03-15 23:58:43 +01:00
Peder Bergebakken Sundt 0bd6cdf6a8 Add perlin noise generator 2019-03-15 21:23:23 +01:00
Peder Bergebakken Sundt 06e6ce7494 cleanup 2019-03-15 21:22:41 +01:00
Peder Bergebakken Sundt eac8fcdf9e Clean up VAO and texture IDs. I don't want to manage those 2019-03-15 18:09:20 +01:00
Peder Bergebakken Sundt 1b05c0ac82 Move MV transform of lights from fragmentshader to cpu 2019-03-15 17:29:59 +01:00
Peder Bergebakken Sundt da7a29a2d1 Make it possible ot have different shaders along scene graph 2019-03-15 16:45:06 +01:00
Peder Bergebakken Sundt 88376587e5 Clean up some types here and there 2019-03-15 16:34:17 +01:00
Peder Bergebakken Sundt e00637d46d Make uniforms named 2019-03-15 16:26:31 +01:00
Peder Bergebakken Sundt 9378c685a8 Do ex2 2019-03-14 12:43:41 +01:00
Peder Bergebakken Sundt 4247ae3659 ex1 done 2019-02-19 16:21:05 +01:00
Bart van Blokland 4645e40b62 Updated code handout for assignment 2 2019-02-18 17:52:50 +01:00
Bart van Blokland 5047f2b506 Fix for incorrect normals 2019-02-15 22:24:42 +01:00
bartvbl a430863701 Initial release 2019-02-04 18:34:28 +01:00