Commit Graph

486 Commits

Author SHA1 Message Date
justin 595cb6e9a8 Remove glTexImage 2021-07-18 21:31:50 +02:00
justin 9407c7af2a Use glTexStorage when resizing framebuffers 2021-07-18 20:36:20 +02:00
justin ac66b4b9d6 Hlint pass 2021-07-12 12:44:43 +02:00
justin 75254cd3e4 Remove renderbuffer from ping-pong framebuffers 2021-07-11 17:56:43 +02:00
justin 26c6c3e426 Upload wall geometry once per frame (can improve for fixed geometry) 2021-07-11 17:32:23 +02:00
justin 37d3e0ce63 Share wall points in buffer, part 1 2021-07-11 15:17:40 +02:00
justin 5e21a6527d Bloom lamps, commit before unifying wall points vbo 2021-07-11 14:34:10 +02:00
justin 50295daeba Remove bloom trails 2021-07-10 15:12:51 +02:00
justin c63b293ea5 Implement multiple radial distortion rendering 2021-07-10 14:04:01 +02:00
justin 1c519259a1 Working radial distortion 2021-07-09 20:41:34 +02:00
justin fd388e1fdf Add barrel distortion shader 2021-07-09 14:36:49 +02:00
justin 5301b6d0bd Make bloom trail last for at most one frame 2021-07-07 14:52:48 +02:00
justin d939ddc731 Remove mipmaps from resize code 2021-07-06 16:43:31 +02:00
justin b5b2a44461 Remove mipmaps from framebuffers with shared renderbuffer 2021-07-06 16:40:01 +02:00
justin 4d7f7803e0 Remove mipmaps from downscaled texture framebuffers 2021-07-06 14:40:51 +02:00
justin f5b139a53e Progress towards downscaling bloom texture 2021-07-06 14:06:24 +02:00
justin be7bf986e2 Add trail to bloom 2021-07-05 21:31:35 +02:00
justin 77d93fabeb Experiment with bloom 2021-07-05 19:39:34 +02:00
justin 2d94e50e3a Tweak rendering 2021-07-05 00:06:04 +02:00
justin ebeec417ce Lap warming commit---gpu needs optimisation 2021-07-04 22:51:40 +02:00
justin e6f95b0480 Separate rendering of background, bloom, lightmap into framebuffers 2021-07-04 19:14:16 +02:00
justin c627961aac Add framebuffers with shared renderbufferobject 2021-07-04 14:41:46 +02:00
justin e3bd99868f Changes towards bloom 2021-07-04 14:09:07 +02:00
justin 9df19a9e85 Allow tweaking z buffer when rendering polygon, improve explosion render 2021-07-03 23:56:01 +02:00
justin 532f491327 Add hard edge to non-visible areas 2021-06-30 13:52:14 +02:00
justin 1cfd1663d1 Fix bug involving number of foreground vertices rendered 2021-06-30 00:59:58 +02:00
justin 357206f060 Almost working shadows 2021-06-30 00:35:41 +02:00
justin 3056e6384b Working shadows from foreground, not optimised 2021-06-29 16:47:16 +02:00
justin 3d16c33d33 Initial pass at shadows from level geometry 2021-06-29 15:27:26 +02:00
justin 089dcc3f5d Add various helpers for creating polyhedra 2021-06-27 18:53:06 +02:00
justin 06f22a3ea5 Add line shadow shader 2021-06-26 22:20:41 +02:00
justin 726cd425f2 Tweak drawing parameters 2021-06-25 18:43:45 +02:00
justin 06a92e70ee Initial working prototype of general lighting surfaces 2021-06-25 03:01:18 +02:00
justin b252c52ffe Add surface lighting shader 2021-06-25 02:27:33 +02:00
justin 2d0f08c2e9 Fix tile depth 2021-06-25 02:27:20 +02:00
justin b6feccd934 Make light position uniform 3d 2021-06-25 01:19:20 +02:00
justin b451953b99 Refactor lighting shaders 2021-06-25 00:44:45 +02:00
justin 6320093473 Fix ellipse shader coordinates 2021-06-24 21:20:14 +02:00
justin bae8a4ed94 Cleanup matrices 2021-06-24 18:49:10 +02:00
justin d4795749e3 Change bufferData to bufferSubData 2021-06-24 18:19:03 +02:00
justin 97598bc171 Replace explicit matrix uniforms with single ubo 2021-06-24 17:58:15 +02:00
justin 7ab932db93 Update twoD shaders 2021-06-24 17:35:50 +02:00
justin 93936346f7 Add uniform buffer window coordinate matrix 2021-06-24 17:17:30 +02:00
justin 9c94ec93bd First pass at using UBO 2021-06-24 16:17:43 +02:00
justin d534f08064 Unify matrix uniform assignment, move towards uniform block 2021-06-24 14:38:17 +02:00
justin 2625927f14 Add sound file 2021-06-24 13:34:41 +02:00
justin 45194273e5 Refactor arc drawing 2021-06-24 13:34:11 +02:00
justin 9f1b501388 Refactor rendering 2021-06-23 15:16:30 +02:00
justin 899c1c5f6e Refactor text rendering 2021-06-23 01:35:38 +02:00
justin 39218ed3b5 Add flavour text, start smoke, support for different reload sounds 2021-06-22 14:42:23 +02:00