Commit Graph

24 Commits

Author SHA1 Message Date
Peder Bergebakken Sundt c695d96158 Add depth of field to post shader 2019-04-01 13:06:56 +02:00
Peder Bergebakken Sundt 8a48b59c0b Calculate the focus factor z in the post shader 2019-04-01 13:05:12 +02:00
Peder Bergebakken Sundt f275aef0b0 Add a framebuffer which the scene is rendered to. Render this framebuffer to screen afterwards 2019-03-31 23:47:16 +02:00
Peder Bergebakken Sundt b29537273b Add backlights to car, and point components to frontlights 2019-03-29 10:41:33 +01:00
Peder Bergebakken Sundt faa69754f8 Make the first light color affect the emissive colors, and fix bilinear filtering in PNGImage 2019-03-28 09:40:40 +01:00
Peder Bergebakken Sundt 74ffe23551 Add support for rim backlights 2019-03-28 09:35:22 +01:00
Peder Bergebakken Sundt 2164551e25 Cleanup in the shaders, making them look prettier and a bit more optimized 2019-03-22 23:50:03 +01:00
Peder Bergebakken Sundt d7df5e5ab1 Minor cleanups and fix spotlights 2019-03-20 00:21:51 +01:00
Peder Bergebakken Sundt 1d7c297257 Minor modifications to the scene 2019-03-19 20:24:59 +01:00
Peder Bergebakken Sundt 5518d8e7ee Add reflection mapping 2019-03-19 20:23:16 +01:00
Peder Bergebakken Sundt 3a6181f239 Revamp color system, again. Moving color components to scene objects instead 2019-03-19 20:11:52 +01:00
Peder Bergebakken Sundt 29defbaba9 Add vertex color array 2019-03-18 11:48:11 +01:00
Peder Bergebakken Sundt c9e4332a65 Add displacement mapping with TBN being affected 2019-03-17 15:17:44 +01:00
Peder Bergebakken Sundt 15dfce421e Fix specular light component
account for the component being negative, and fix a typo
2019-03-16 20:50:39 +01:00
Peder Bergebakken Sundt 7135ebab6b Revamp the shader and lighting system 2019-03-16 20:12:35 +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 06e6ce7494 cleanup 2019-03-15 21:22:41 +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 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
bartvbl a430863701 Initial release 2019-02-04 18:34:28 +01:00