Commit Graph

19 Commits

Author SHA1 Message Date
Eric Wasylishen 2d54b3409a remove unused code related to "no_phong" 2025-02-08 16:03:46 -07:00
Eric Wasylishen ebe157cb43 cleanup: get_hull_sizes(): use std::span instead of std::initializer_list 2025-02-04 19:55:39 -07:00
Eric Wasylishen fe42faf15b common: surfflags_t: use bitfields for the bools
surfflags_t 160 -> 152 bytes
2025-02-01 16:25:51 -07:00
Eric Wasylishen bf6710e625 common: surfflags_t: convert is_hintship to function that checks for Q2_SURF_SKIP 2025-02-01 16:17:26 -07:00
Eric Wasylishen f930305695 common: surfflags_t: convert is_hint to function that checks for Q2_SURF_HINT 2025-02-01 16:04:08 -07:00
Eric Wasylishen 429921868a common: surfflags_t: convert is_nodraw to function that checks for Q2_SURF_NODRAW 2025-02-01 15:53:37 -07:00
Eric Wasylishen 6f1b4252d2 common: split surfflags_t::native into native_q1 and native_q2 2025-02-01 14:47:50 -07:00
Eric Wasylishen 4c1d4af2ed cleanup: use spaceship operator where possible 2025-01-01 16:57:21 -07:00
Eric Wasylishen a0953767a2 qbsp: more func_illusionary_visblocker fixes
See #441

- fix visblocker merging with detail_illusionary, by introducing a new content type
- fix _mirrorinside 0 not working on visblocker
2024-11-23 22:21:51 -07:00
Eric Wasylishen 9f4cfb0c3d cleanup: code formatting pass 2024-11-18 21:25:27 -07:00
Eric Wasylishen 8038b730e1 qbsp: fix func_illusionary_visblocker
Fixes #440
2024-11-18 21:19:41 -07:00
Eric Wasylishen 1337919805 cleanup: don't pass std::string_view by reference
by value is the same on MSVC, may be marginally better elsewhere

see:
https://quuxplusone.github.io/blog/2021/11/09/pass-string-view-by-value/
https://quuxplusone.github.io/blog/2021/11/19/string-view-by-value-ps/
2024-11-17 21:52:10 -07:00
Eric Wasylishen b8fdbe3d41 cleanup: don't pass contentflags_t by reference (it's only 8 bytes) 2024-11-17 21:23:09 -07:00
Eric Wasylishen 472077b8e1 common: add has_structural_solid() helper 2024-11-17 15:05:40 -07:00
Eric Wasylishen 14d8b5f6fc common: fix bitflag_names 2024-10-31 19:05:23 -06:00
Eric Wasylishen ed62ec1040 cleanup: remove unused game argument from contentflags_t::to_string() 2024-09-08 19:36:00 -06:00
Jonathan f816b433d1 fix visible clip brushes
add support for the two missing content flags from re-release
2024-06-07 21:22:38 -04:00
Jonathan b5089ce349 slight speedup by helping embree with alignment
merge some light algorithms together
allow changing attenuation on surface lights with _surflight_atten
replace some emplace_back's with push_back to improve compilation times
2024-06-02 19:49:32 -04:00
Eric Wasylishen b89bac4e8c common: split start of bspfile.hh into bspfile_common.hh
old layout was confusing CLion because bspfile.hh included
itself
2024-03-11 20:14:59 -06:00