Commit Graph

176 Commits (116c55cf22a7d5aa6a70e867090b631cf7a399d6)

Author SHA1 Message Date
Dominik Madarász 98bdd7136a fix: gamma correct IBL maps
new: support OcclusionMetallicRoughness maps
2024-04-23 10:46:11 +02:00
Dominik Madarász f726a2af7b new: renderstate add glColorMask fields 2024-04-18 12:10:49 +02:00
Dominik Madarász 50b0d0766c new: added fx_setparam 2024-04-18 11:31:43 +02:00
Dominik Madarász f7015da22e new: added fx_program(int pass) 2024-04-18 11:18:12 +02:00
Dominik Madarász 7df5ea4ca6 new: renderstate additions 2024-04-18 09:57:28 +02:00
Dominik Madarász ba60e86882 fix: fx stack fix blendFunc state 2024-04-18 09:13:11 +02:00
Dominik Madarász 038386ef2d new: frame_time uniform 2024-04-18 01:42:40 +02:00
Dominik Madarász 23c860ab99 new: MODEL_CULLFACE 2024-04-17 22:35:46 +02:00
Dominik Madarász 470e455091 gfx: more state changes 2024-04-15 16:00:46 +02:00
Dominik Madarász 881a36b759 gfx: rename polygon mode state 2024-04-15 14:14:50 +02:00
Dominik Madarász 9bd54e7ae1 gfx: finish up renderstate
This reverts commit 115fff8ae0.
2024-04-15 14:10:11 +02:00
Dominik Madarász 83464176bf gfx: renderstate cleanup 2024-04-15 13:37:34 +02:00
Dominik Madarász 57e55fd8f6 gfx: revert shader caching 2024-04-15 12:07:05 +02:00
Dominik Madarász e74df3477c gfx: unify shader locations in model api 2024-04-15 10:54:30 +02:00
Dominik Madarász c34cde2102 gfx: centralise model shading init 2024-04-15 10:07:28 +02:00
Dominik Madarász 8649efc974 gfx: disable uniform caching + perf tweaks 2024-04-15 09:30:36 +02:00
Dominik Madarász 115fff8ae0 gfx: shader instance caching 2024-04-15 07:21:15 +02:00
Dominik Madarász 05f23f2ca6 add luaffi 2024-04-12 21:17:01 +02:00
Dominik Madarász fd6b9ef639 gfx: model render pass switch + lmap fix 2024-04-12 00:22:52 +02:00
Dominik Madarász d05c92a9b7 gfx: more cull face coverage 2024-04-11 10:04:52 +02:00
Dominik Madarász 2277b42619 gfx: figure out face culling defaults 2024-04-11 09:43:10 +02:00
Dominik Madarász 50cc35db90 additional improvements 2024-04-11 01:23:21 +02:00
Dominik Madarász 7b67f29611 gfx: drop viewport and scissor_box 2024-04-11 01:13:35 +02:00
Dominik Madarász 90a7319eaf gfx: postfx_end use rs 2024-04-11 00:59:32 +02:00
Dominik Madarász 40783980c0 drop lightmap hack 2024-04-11 00:55:14 +02:00
Dominik Madarász b4d410212f demos: fix lmap and lod demo 2024-04-11 00:51:47 +02:00
Dominik Madarász 99111665ba snake_case renderstate_t 2024-04-11 00:42:53 +02:00
Dominik Madarász 1c19c44400 wip: renderstate impl 2024-04-11 00:19:08 +02:00
Dominik Madarász 1b6169a515 shadertoy: set viewport 2024-03-29 00:21:53 +01:00
Dominik Madarász 594b8a0136 demos: shadertoy in material 2024-03-27 21:58:15 +01:00
Dominik Madarász ff72ac6bc9 gfx: generate brdf lut 2024-03-27 19:02:07 +01:00
Dominik Madarász 76b256ab02 fx: ui fixes 2024-03-27 14:49:07 +01:00
Dominik Madarász f66f0336c2 fx: set default priority 2024-03-27 14:03:21 +01:00
Dominik Madarász 9992c74e52 fx: fx_order support 2024-03-27 14:00:03 +01:00
Dominik Madarász 2bc338172c improve pbr shader, introduce fxAces.fs 2024-03-27 12:48:23 +01:00
Dominik Madarász 7037d7158b revert gamma correction code 2024-03-27 12:11:39 +01:00
Dominik Madarász 59c9f8be4e more gamma tweak-ups 2024-03-27 08:36:32 +01:00
Dominik Madarász fabbcc4aa7 gfx: TEXTURE_NO_SRGB 2024-03-26 21:14:42 +01:00
Dominik Madarász bd19dba3a3 last srgb change 2024-03-26 19:38:12 +01:00
Dominik Madarász dc5bbd32e9 srgb 2024-03-26 19:31:03 +01:00
Dominik Madarász 5f31dd100c improve srgb control 2024-03-26 19:13:55 +01:00
Dominik Madarász b841064174 fix CRLF 2024-03-26 17:15:02 +01:00
Dominik Madarász b14c31b4e0 gfx: gamma correction 2024-03-26 17:05:14 +01:00
Dominik Madarász 253b931093 demos: fix 99-pbr 2024-03-26 15:34:25 +01:00
Dominik Madarász d2582796a8 render: optimise pbr load 2024-03-26 15:22:36 +01:00
Dominik Madarász d636c1c796 render: unify pbr materials 2024-03-26 15:09:49 +01:00
Dominik Madarász 311e5894a7 promote texture_unit() 2024-03-21 08:27:08 +01:00
Dominik Madarász 4fdc043677 shader uniform caching 2024-03-21 08:13:47 +01:00
Dominik Madarász 2f49239a9f improve shader binding for PBR 2024-03-21 07:47:28 +01:00
Dominik Madarász fad3653201 improve tex unit allocation 2024-03-21 07:43:51 +01:00
Dominik Madarász c8a6c79bf1 cycle texture units 2024-03-21 07:13:18 +01:00
Dominik Madarász bbd9b4e950 support multiple PBR materials 2024-03-21 06:36:53 +01:00
Dominik Madarász 64c6fb54a4 drop flag check 2024-03-20 21:48:52 +01:00
Dominik Madarász f620ed1938 optimise skybox_pbr 2024-03-20 21:46:51 +01:00
Dominik Madarász 082f78d25f add cmft studio + hdr maps 2024-03-20 21:25:47 +01:00
Dominik Madarász 7efc59079a improve material demo 2024-03-20 20:46:40 +01:00
Dominik Madarász 91d3f9a03a cleanup 2024-03-20 19:42:49 +01:00
Dominik Madarász 6f83b81132 preprocess shaders 2024-03-20 19:41:12 +01:00
Dominik Madarász 363ae843f4 add MODEL_PBR flag 2024-03-20 18:49:26 +01:00
Dominik Madarász 920d8ecad4 wip: pbr support 2024-03-20 18:33:02 +01:00
Dominik Madarász 33fb24142d renderer: mesh_destroy 2024-03-01 12:37:11 +01:00
Dominik Madarász 3070fece7e fix enet 2024-03-01 10:12:47 +01:00
Dominik Madarász 5a4e56f63c win: add viewport_color 2024-02-28 08:53:04 +01:00
Dominik Madarász 4982761b48 various improvements 2024-02-16 15:38:45 +01:00
Dominik Madarász 7d5efa6c62 draw: add TEXTURE_ANISOTROPY flag 2024-02-14 15:09:47 +01:00
Dominik Madarász 083174e68c model: use linear filtering by default 2024-02-14 11:52:50 +01:00
Dominik Madarász 10746e8b0f render: fix animations speed setup 2024-02-11 11:38:40 +01:00
Dominik Madarász 295a9d932d font: fix linedist calc + add font_print_rect 2024-02-08 11:24:55 +01:00
Dominik Madarász b970e828b1 sync fwk 2023-12-04 09:13:46 +01:00
Dominik Madarász bc1ff71f74 sync fwk 2023-12-02 11:05:15 +01:00
Dominik Madarász 4af34422f2 lmap updates 2023-12-01 22:19:41 +01:00
Dominik Madarász 7bcfb3e00c add progress func 2023-12-01 16:54:40 +01:00
Dominik Madarász 985b4de0d2 lightmapping support 2023-12-01 16:05:38 +01:00
Dominik Madarász 084f549ba1 wip: lmap 2023-12-01 12:01:03 +01:00
Dominik Madarász 4291c2590b sync fwk 2023-11-26 16:06:55 +01:00
Dominik Madarász ceae5e2fe0 sync fwk 2023-11-19 13:07:28 +01:00
Dominik Madarász 5aa83a524a huge v4k update 2023-11-15 20:14:14 +01:00
Dominik Madarász b7344c7298 small billboarding changes 2023-11-07 10:54:37 +01:00
Dominik Madarász 6e39436792 delete old code 2023-11-06 09:31:26 +01:00
Dominik Madarász 62390a3e4b billboarding fixed 2023-11-06 09:30:19 +01:00
Dominik Madarász b8b1043aad sync fwk 2023-10-27 09:42:40 +02:00
Dominik Madarász f727f387ae sync fwk 2023-10-22 00:05:22 +02:00
Dominik Madarász ef1d1e1d9b sync fwk 2023-10-21 20:29:22 +02:00
Dominik Madarász 2fddd84946 sync fwk 2023-10-21 11:18:13 +02:00
Dominik Madarász eb331e4251 fix rgba 2023-10-19 13:08:02 +02:00
Dominik Madarász dd783b1f54 sync fwk 2023-10-15 13:16:35 +02:00
Dominik Madarász 759ace3441 update ark + fix omp parallel for deadlock 2023-10-14 22:00:30 +02:00
Dominik Madarász 64a7eade9f sync fwk 2023-10-14 21:47:24 +02:00
Dominik Madarász de4f390376 revert that decision 2023-10-09 18:53:56 +02:00
Dominik Madarász 7e1980b73a panic on shader error 2023-10-09 18:53:05 +02:00
Dominik Madarász 0f328384b2 fix GL program used 2023-10-09 18:15:02 +02:00
Dominik Madarász 5edc8228c7 sync with FWK 2023-10-07 19:34:09 +02:00
Dominik Madarász 4e871b7612 sync to FWK 2023-10-05 07:16:41 +02:00
Dominik Madarász 51f0959d75 sync to FWK 2023.9 2023-10-01 08:49:08 +02:00
Dominik Madarász d029777c9d sync with fwk 2023-09-27 08:49:59 +02:00
Dominik Madarász a4869085a4 window: improve transparency pass (r-lyeh) 2023-09-25 12:24:49 +02:00
Dominik Madarász e437dcabe2 sync to FWK
new: FX params exposed automatically (int,float,vec2/3/4,color3/4), set/min/max/tooltips
new: atof2/3/4, ftoa2/3/4, swapf2/3/4, clamp2/3/4
lab: shader reflection API
brk: changed ui_enable() signature; renamed clamp234->clamp234f
2023-09-25 06:29:29 +02:00
Dominik Madarász 9731ca611c render: finalize phong shader 2023-09-23 22:00:22 +02:00
Dominik Madarász fff4880c4f render: finish up phong shading 2023-09-23 20:53:25 +02:00
Dominik Madarász b44fd791a6 render: fx_end() no longer takes fb handle 2023-09-23 18:23:38 +02:00