Commit Graph

32 Commits

Author SHA1 Message Date
veclavtalica
8c0f43ec34 draw: draw_distance for 3d spaces, proper positioning of skybox according to it, scenery demo on circle rasters 2025-02-26 15:53:59 +03:00
veclavtalica
23fbd45564 increase quad element buffer size 2025-02-26 13:29:28 +03:00
veclavtalica
a36459397e draw: increase far Z, separate path for space quads, fix billboard batching 2025-02-26 13:27:09 +03:00
veclavtalica
62866d33ae add notes explaining emscripten considerations 2025-02-22 16:19:22 +03:00
veclavtalica
814269ab0c textures working on web, separation of vertex and index buffers (actually matters) 2025-02-21 23:34:01 +03:00
veclavtalica
6bd3afe9b2 move and combine option macro headers from public interface 2025-02-20 13:01:02 +03:00
veclavtalica
5a83381ae1 twn_draw: texture_region option for draw_billboard() 2025-02-15 22:42:14 +03:00
veclavtalica
f81c583319 push as is, half baked broken twn_models.c 2025-02-14 19:51:34 +03:00
veclavtalica
559ff9fedc proper state, handling of fans 2025-02-07 13:42:01 +03:00
veclavtalica
7040d6f218 wip model loading + workers 2025-02-07 10:19:36 +03:00
veclavtalica
d9df3f9b04 twn_draw.c: draw_camera_2d()! 2025-02-05 00:54:38 +03:00
veclavtalica
2120f6876c camera reset and default state 2025-02-02 01:41:02 +03:00
veclavtalica
2df5616410 add line drawing 2025-01-23 04:29:59 +03:00
veclavtalica
8a5d639f95 remove indirection in vertex builder 2025-01-17 22:48:35 +03:00
veclavtalica
5059802d09 big rendering overhaul (cleaning and api abstraction) 2025-01-14 23:20:54 +03:00
veclavtalica
83e2dc5468 make vec4 and matrix types internal 2025-01-10 02:40:52 +03:00
veclavtalica
3bfa86066e billboards! 2025-01-05 19:46:05 +03:00
veclavtalica
4f2b8ccd01 separate the rest of general drawing code 2025-01-03 21:59:00 +03:00
veclavtalica
33471b4c46 generalization of deferred commands and any_gl rendering where appropriate 2025-01-03 21:01:26 +03:00
veclavtalica
f9a8448782 make SpritePrimitive take less space (52 -> 48 bytes) 2025-01-03 19:48:00 +03:00
veclavtalica
d794ca862f remove junky UncoloredSpaceTriangle union, hide vertex generation from generic triangle implementation 2024-11-03 23:08:53 +03:00
veclavtalica
e4da4a8b7f add a TODO 2024-11-03 21:54:55 +03:00
veclavtalica
eff2d9c5e1 direct header includes, remove redundant ones 2024-10-22 10:39:40 +03:00
veclavtalica
48f63fc9df deferred skybox, fixes to use of ARB_depth_clamp extension usage, have TextureKey explicitly in QuadBatch 2024-10-22 09:30:14 +03:00
a7b09b9f39 fix circle rendering over new impl 2024-10-19 19:16:18 +03:00
7e409fc14a work towards DeferredCommandDraw being universal, support for DeferredCommandDepthRange, rework of cirlce mesh (has a bug still), get_quad_element_buffer() now more general, as it should be with gl_any 2024-10-17 21:01:35 +03:00
139394c6de partial implementation of double buffered render 2024-10-15 15:29:45 +03:00
d34516c4ee Merge branch 'main' of https://git.poto.cafe/wanp/townengine 2024-10-14 11:48:46 +03:00
b295c5920c rendering: use sprite batching techniques for rect primitives, unite their render path 2024-10-14 11:46:07 +03:00
f7f27119e1 use static, fixed arrays for circle geometry data instead of allocating for each one 2024-10-13 22:32:59 -03:00
da98c0941b effort to have no warnings once again 2024-10-13 21:32:31 +03:00
ade1af12ca twn_rendering -> twn_draw 2024-10-07 17:53:09 +03:00