Commit graph

328 commits

Author SHA1 Message Date
d930ef6d93 Parse skins & animations in gltf parser 2023-03-25 19:50:32 +03:00
3bb0b53daf Support doubleSided property of gltf materials 2023-03-25 11:34:29 +03:00
0b0be3539f Include mipmaps in texture memory usage 2023-03-20 13:57:31 +03:00
d68242d59d Support material texture in gltf parser 2023-03-18 17:36:52 +03:00
98300b2f64 Clang compilation fix 2023-03-17 15:15:11 +03:00
ef6ef081d8 Support KHR_lights_punctual in gltf parser 2023-03-15 15:57:12 +03:00
23f818078f Fix gfx::memory_usage(texture) 2023-03-08 22:24:49 +03:00
20574e23e3 Add gfx::draw_buffer 2023-03-04 10:58:26 +03:00
cc7135a0f4 Warn about unknown pixel format instead of throwing 2023-02-28 01:36:17 +03:00
8b456ce9e9 Bind gfx::buffer when attaching it to buffer texture (otherwise it doesn't work if the buffer wasn't bound at least once yet) 2023-02-27 12:42:41 +03:00
32da717a55 Add float -> normalized (un)signed 8/16-bit converters to gfx 2023-02-26 23:46:06 +03:00
696ed71090 Add gfx memory usage utilities 2023-02-26 20:44:29 +03:00
6d5a01921c Remember memory size in gfx::buffer 2023-02-26 20:08:59 +03:00
ab13864021 Add node & material index to gltf_asset 2023-02-13 21:46:59 +03:00
5f63fb76f5 Add stride information to gltf parser 2023-02-13 18:04:08 +03:00
1a06f5071d Remove obsolete gfx::mesh::count method 2023-02-12 11:40:38 +03:00
5e6cd060d7 Make io::read_full return util::blob 2023-02-10 21:15:19 +03:00
417c6f0080 Support more PNG color types 2023-02-05 00:33:53 +03:00
1582b341d3 Support child nodes & node transforms in gltf parser 2023-02-01 20:35:32 +03:00
0e84751ac9 Make gfx::gltf_mesh return empty primitive span if mesh wasn't found 2023-01-25 13:01:03 +03:00
ce1809e50d Support material names & emission in gltf parser 2023-01-24 12:01:51 +03:00
fdcf0d5b88 MacOS fixes 2023-01-16 23:53:34 +03:00
8e286a2cc0 Load gltf textures as sRGB 2023-01-15 22:57:14 +03:00
63f576aee5 Add gfx::blend for colors 2023-01-15 14:23:06 +03:00
441db52e71 Add gfx::lerp for float colors 2023-01-15 14:22:55 +03:00
437714288b Refactor gltf_mesh 2023-01-14 03:35:12 +03:00
514f4006ef Parse textures in gltf_parser 2023-01-14 03:35:03 +03:00
f9e8b76029 Fix gfx rapidjson dependency 2023-01-08 17:56:31 +03:00
c980e72e14 Make gfx::gltf_mesh::mesh::primitive::draw const 2023-01-07 02:46:40 +03:00
13590ff9e5 Add gltf asset parser & mesh generator 2023-01-07 02:26:26 +03:00
e959c0ec1d Add gfx::buffer::load_subdata 2022-12-16 15:48:17 +03:00
386ac2a518 Don't call glUniformBlockBinding for unused uniform blocks 2022-11-30 17:34:59 +03:00
d1884e4e83 Support multisample textures in framebuffers 2022-11-30 17:34:21 +03:00
a758535700 Implement multisample textures 2022-11-30 17:33:17 +03:00
f8846e8c06 Support multisample renderbuffers 2022-11-30 17:32:38 +03:00
52bb516d5c Initialize gfx objects id to 0 in class instead of constructor 2022-11-30 17:31:47 +03:00
03976206ce Store allocated gfx::renderbuffer size 2022-11-30 17:26:43 +03:00
182de08811 Add gfx::renderbuffer::target 2022-11-30 17:25:13 +03:00
ce287c0416 Support loading data from util::span to gfx::buffer 2022-08-19 09:48:21 +03:00
5f3b07573e Support retrieving available GPU memory size 2022-08-14 22:59:14 +03:00
19d8637f7a Update gl.cpp 2022-08-14 22:40:20 +03:00
8d6cf511aa Export variables that force use of dedicated discrete GPUs 2022-08-14 22:20:24 +03:00
3ca9c8b16e Add buffer textures 2022-07-29 18:58:41 +03:00
ec6bd1d60b Don't throw on invalid uniform block index 2022-07-28 13:51:45 +03:00
f574850621 Fix setting up instanced VAO attribs using gfx::setup 2022-06-30 23:08:13 +03:00
bd7f8e6658 Add gfx::array::operator bool 2022-06-30 23:07:51 +03:00
abc0af2a79 Setup gfx::mesh when loading imported mesh 2022-06-30 14:06:02 +03:00
b519391f83 Fix gfx::bone_transform::matrix 2022-06-23 00:10:17 +03:00
8d2f244d0d Support gfx::compile armature pose ignoring local bone coordinate systems 2022-06-22 18:04:39 +03:00
a439d33b0f Support setting uniform block indices in gfx::program 2022-06-22 18:03:04 +03:00