Commit Graph
971 Commits
Author SHA1 Message Date
Garux 7bb1c1ba06 remove odd casts 2025-11-02 02:37:40 +05:00
Garux 5b380fd6fe remove explicit float literal specifiers 2025-11-02 01:27:42 +05:00
Garux 17d6588d1a use std::fabs to avoid conversion to double 2025-11-01 19:08:32 +05:00
Garux 43e2c423de fix script error line reporting on the 1st script line 2025-11-01 10:06:19 +05:00
Garux 198a915665 make q3map_skyLight work w/o surfaceparm sky or q3map_sun 2025-11-01 08:38:33 +05:00
Garux 9bee25ef81 fix global _ambient not being used on entities w/o _ambient specified 2025-11-01 00:27:11 +05:00
Garux 4e9c91e86d add ModelGetTransform() 2025-10-31 16:00:12 +05:00
Garux 6e5067828a fix PopulateWithBSPModel() oddly using modelscale and angles 2025-10-31 15:10:49 +05:00
Garux a2404a5743 limit erroneous script files location reporting to script files
(was reporting image files during .map parsing)
2025-10-31 02:30:55 +05:00
Garux b76a5e22ae fix FloodAreas() stack overflow in extreme cases 2025-10-30 17:10:34 +05:00
Garux 7111e78f24 undo = default; constructors, they allow zero initialization, unlike constructors with empty body 2025-10-30 00:19:03 +05:00
Garux c25a3e3635 add entity_t::setKeyValue overloads 2025-10-29 00:58:25 +05:00
Garux 3d36693f55 use std::forward_list<parseMesh_t> for entity_t::patches 2025-10-28 23:03:35 +05:00
Garux 337f10d7a1 clarify _skybox surfaces processing 2025-10-28 17:07:52 +05:00
Garux 1afbbf36fe print deduced Fog visible side uniformly to also feedback -1 side 2025-10-27 03:22:48 +05:00
Garux 4bbb043eff minor tweaks 2025-10-27 02:41:26 +05:00
Garux 968d36d656 fix _skybox geometry being not scaled when _skybox area had other entities
entities after _skybox were overwriting node->skybox flag
2025-10-26 17:24:09 +05:00
Garux 553dd81247 minor tweaks 2025-10-26 00:35:05 +05:00
Garux abadf52398 * support separated _ambient, _color per group, misc_model entities 2025-10-25 22:10:56 +05:00
Garux ae3b75b31f add ColorFromSRGB() 2025-10-25 18:23:20 +05:00
Garux 739bad8e24 * -format map_220: bsp to map of Valve220 format conversion 2025-10-21 23:49:45 +05:00
Garux bf9d5c3e5b fix texture alignment deduction during bsp to map decompilation on bmodels with origin
avoid different bmodels matching surfs mixture in GetBestSurfaceTriangleMatchForBrushside
2025-10-21 15:09:15 +05:00
Garux 1285e9c9e5 * fix AP texture alignment deduction during bsp to map decompilation 2025-10-21 05:17:16 +05:00
Aciz 2e02a8dd75 fix decltype declarations for GCC in MergeBspMain
'decltype(foo) foo = std::move(::foo)' is ambiguous on GCC and fails to compile, because it cannot determine whether you're trying to bind to the just created variable in the local scope, or the one that exists in global scope.
2025-10-20 20:55:36 +03:00
Garux e919276f52 * -wtf: During bsp to map conversion use common/WTF on faces with failed texture alignment deduction 2025-10-20 15:33:04 +05:00
Garux ee3ac80a62 * -modelclip: Decompile model autoclip brushes during bsp to map conversion (they are skipped by default)
explicit setting instead of reusing -force
2025-10-20 15:17:27 +05:00
Garux 5dbb0af073 minor tweaks 2025-10-20 14:52:24 +05:00
Garux e3611620f5 clarify -nobouncestore description (doesn't store after normal light pass too) 2025-10-19 09:10:00 +05:00
Garux 00c352b697 remove odd newlines 2025-10-09 02:45:30 +05:00
Garux c5ced679f4 more Quoted use 2025-10-06 23:31:01 +05:00
Garux eab59834bc * support distinct lighting from different sky shaders in one map (by Tom Arrow)
* -onesky: fallback to old behavior: any sky emits total of all suns/skylights in the map
2025-10-06 05:09:10 +05:00
Tom fef5c4648b -multiSun commandline flag: Draw sun/skylights only if they come from the sky whose shader they were defined in.
Every shader that emits sun or skyligghts gets an environment emitter index. All the suns/lights generated from that shader get the same index.
trace_t now has a bitmask of all the environment emitter indices encountered when hitting sky surfaces and checking their shader.
Lighting code checks whether the current sunlight has a defined environment emitter index and if it does, it checks whether it is set in the bitmask. Only then will the light be considered to hit.
2025-09-29 23:59:51 +02:00
Garux 76c423fa63 minor tweaks 2025-09-28 03:56:48 +05:00
Garux a8b0ac4eb7 define CLUSTER_OPAQUE CLUSTER_NORMAL constants 2025-09-23 17:25:51 +05:00
Garux 01e6ad9e1d define FOG_INVALID constant 2025-09-23 05:47:20 +05:00
Garux 6e2d0d139b define explicit AREA_INVALID constant 2025-09-23 04:46:33 +05:00
Garux 2580a1ee17 minor tweaks 2025-09-23 03:59:53 +05:00
Garux 66e15e9ba0 minor tweaks 2025-09-23 02:45:24 +05:00
Garux e8f74da3d2 minor tweaks 2025-09-22 22:36:41 +05:00
Garux 10cfb24b77 * fix and simplify FloodAreas
was bugged since original q3map
bug behavior was made consistent in c379aae1d4 (was determined by 1st brush face being areaportal before)
2025-09-22 16:32:16 +05:00
Garux 16a04110b3 fix MAX_PATCH_SIZE, it's 31 2025-09-18 23:40:31 +05:00
Garux fb3698b820 minor tweaks 2025-09-18 23:36:30 +05:00
Garux 2501b86856 * refactor to work without -maxshaderinfo limit, improve shader search performance 2025-09-18 21:07:03 +05:00
Garux 7ddab0634b minor tweaks 2025-09-17 14:49:19 +05:00
Garux 6e8079cc93 minor tweaks 2025-09-14 03:55:34 +05:00
Garux 1cce74baac fix typo 2025-09-14 03:48:17 +05:00
Garux d7f3e9bd3f minor tweaks 2025-09-04 16:01:47 +05:00
Garux 911a7cceeb minor tweaks 2025-09-03 00:29:13 +05:00
Garux 059702afc9 Merge pull request #243 from TomArrow/anotherstylefix
Fix bounce lighting for styled lights
2025-08-01 04:08:43 +05:00
Tom 7888d5905a Fix bounce lighting for styled lights 2025-07-31 23:45:25 +02:00