Commit graph

370 commits

Author SHA1 Message Date
49cf0b2359 Add expend(box,vector) 2020-12-12 15:54:15 +03:00
cf311b4993 Remove obsolete code 2020-12-11 19:43:30 +03:00
0517609b8b Add util/hash header 2020-12-11 17:58:36 +03:00
f4908f2368 Deferred renderer: sort objects by distance to camera 2020-12-11 17:51:08 +03:00
72e0681521 Deferred renderer: bucket objects by material 2020-12-11 17:40:28 +03:00
82817304e2 Deferred renderer: remove explicit diffuse material property 2020-12-10 23:34:00 +03:00
91650cb4ac gfx::texture::pixels: support different lods & outputting to existing pixmap 2020-12-10 23:33:25 +03:00
f4c94e318f Deferred renderer: implement primitive camera clipping 2020-12-10 22:28:48 +03:00
22f1dde2dc Refactor deferred_renderer::render 2020-12-10 22:15:44 +03:00
5cb74583a4 Deferred renderer: accept material by pointer, casts_shadow is a property of material 2020-12-10 21:57:26 +03:00
6690e23037 Support direct access to buffers from gfx::mesh 2020-12-10 21:56:31 +03:00
28b4bad3a7 Support mapping gfx::buffer (write-only) 2020-12-10 21:56:13 +03:00
77a32e444a Fix padding in instanced attribs 2020-12-10 21:55:55 +03:00
bcb04d5286 Fix deferred renderer when bloom is not used 2020-12-10 18:33:08 +03:00
cfc8cf4577 Update todo 2020-12-10 18:32:46 +03:00
c8c5e874da Implement SSAO in deferred renderer 2020-12-10 10:41:40 +03:00
077a95e78b Add hemispherical random distributions 2020-12-10 10:39:04 +03:00
3ce7f05adf Fix random::uniform_ball result type 2020-12-10 10:38:42 +03:00
0a0398807f Remove confusing random::generator constructor 2020-12-10 10:37:15 +03:00
1e8df117cf Move random generation to a separate library 2020-12-09 23:53:36 +03:00
1620eef29d Implement blooming in deferred renderer 2020-12-09 23:21:15 +03:00
15fcfdd053 Add blur effect 2020-12-09 23:19:27 +03:00
4915b171c7 Implement simple overlay effect that fills a texture over a render target 2020-12-09 23:19:18 +03:00
dd520c4cae Deferred renderer: fix shadows behind transparent objects 2020-12-09 19:43:22 +03:00
e799771a40 Deferred renderer: implement unlit transparent objects 2020-12-09 19:32:57 +03:00
167f979285 Deferred renderer: support choosing between 16-bit and 32-bit floats for position representation 2020-12-09 18:18:32 +03:00
28b676b002 Fix friction collision 2020-11-29 14:33:35 +03:00
fd5b61f6a1 Add 2d physics engine example 2020-11-29 12:32:53 +03:00
66d89a4fa6 Add 2d physics library (wip) 2020-11-29 12:32:41 +03:00
1c550d7168 Small fix in test duration output 2020-11-29 12:31:45 +03:00
148dc60d40 Support pumping non-delayed events in async::event_loop 2020-11-29 12:30:40 +03:00
abd40bfa4d Make util::profiler use the logging system 2020-11-29 12:30:02 +03:00
8ea508ee20 Fix flat_list: destructor hack should only compile for types with nontrivial destructor 2020-11-29 12:27:41 +03:00
76c465903b Support constructing orthographic_camera from 2d box 2020-11-29 12:26:43 +03:00
5ab15e263a Add geom::solve for solving simple linear equations 2020-11-29 12:26:22 +03:00
c7b44a6925 Add box::corner - N-d lerp inside a box 2020-11-29 12:25:46 +03:00
a7f067bedb Add shrink & expand functions for intervals & boxes 2020-11-29 12:25:25 +03:00
d5495a52ce Add geom::sign function 2020-11-29 12:24:52 +03:00
d470fe7346 Add a heterogeneous container (with type list specified at compile-time) & tests 2020-11-26 22:01:57 +03:00
ccef8f91ea Optimize flat_list::clear for the case of trivially-destructible types 2020-11-26 14:43:30 +03:00
e3c42627c4 Add util::flat_list and tests 2020-11-25 13:23:27 +03:00
91faa2423e Add testing context as test case argument & support simple profiling in tests 2020-11-25 13:17:24 +03:00
bc18b03a53 Add comparison checks to testing framework 2020-11-25 10:08:51 +03:00
ea81ac987d Support underscores in test names 2020-11-25 10:08:21 +03:00
eda0701887 Add util tests 2020-11-24 23:13:34 +03:00
c6a8590b2c Add a simple unit testing framework 2020-11-24 23:11:40 +03:00
26d06b74d3 Fix util::array::release 2020-11-24 23:11:11 +03:00
bfff9b2c4d Add util::blob::operator bool() and util::blob::swap 2020-11-24 23:10:52 +03:00
1e1679ffe0 Add <functional> include in util::function for std::invoke 2020-11-24 23:10:15 +03:00
75b847ec23 Add geom::lerpn - n-ary baricentric interpolation 2020-11-23 18:14:06 +03:00