ericw-tools/include/common
Eric Wasylishen 30868eacb7
light: LIGHTING_E5BGR9 + HDR .lit support (#427)
* light: Add support for LIGHTING_E5BGR9.

This is not really finished. Currently mutually exclusive with
regular RGBLIGHTING, and not tested with external .lit file.

* light: replace HDR_PackResult with a version following the OpenGL spec

- add HDR_UnpackE5BRG9 for unpacking
- caller is now responsible for scaling 128 -> 1
- expose in header for tests

* light: move HDR_PackE5BRG9/HDR_UnpackE5BRG9 to common/litfile.hh

* build: std::powf not available in gcc

* common: move LoadLitFile to litfile.hh

* common: LoadLitFile: return hdr variant as well

* lightpreview: add an Exposure slider

* lightpreview: support hdr .lit's, wip

* tests: refactoring to set up testing for hdr lit's

* tests: add test for -hdr and -bspxhdr

* tests: fix LM_Sample to deal with styles correctly

* lightpreview: fix glsl error

* lightpreview: show dialog box for glsl compile errors

---------

Co-authored-by: Daniel Svensson <dsvensson@gmail.com>
2024-05-26 21:55:10 -06:00
..
aabb.hh rename: vec_t -> double 2023-12-23 21:09:16 -07:00
aligned_allocator.hh light: minimize includes 2023-06-26 01:19:54 -06:00
bitflags.hh cleanup: set PackConstructorInitializers: Never 2023-02-20 10:23:59 -07:00
bspfile.hh common: split start of bspfile.hh into bspfile_common.hh 2024-03-11 20:14:59 -06:00
bspfile_common.hh common: split start of bspfile.hh into bspfile_common.hh 2024-03-11 20:14:59 -06:00
bspfile_generic.hh common: split start of bspfile.hh into bspfile_common.hh 2024-03-11 20:14:59 -06:00
bspfile_q1.hh common: split start of bspfile.hh into bspfile_common.hh 2024-03-11 20:14:59 -06:00
bspfile_q2.hh common: split start of bspfile.hh into bspfile_common.hh 2024-03-11 20:14:59 -06:00
bspinfo.hh light: LIGHTING_E5BGR9 + HDR .lit support (#427) 2024-05-26 21:55:10 -06:00
bsputils.hh light: LIGHTING_E5BGR9 + HDR .lit support (#427) 2024-05-26 21:55:10 -06:00
bspxfile.hh common: structured bspxbrushes reading/writing 2023-11-25 17:28:26 -07:00
cmdlib.hh common: structured bspxbrushes reading/writing 2023-11-25 17:28:26 -07:00
decompile.hh lightpreview: decompile hulls for leaf visualization 2023-10-19 00:10:42 -06:00
entdata.h rename: vec_t -> double 2023-12-23 21:09:16 -07:00
fs.hh cleanup: set PackConstructorInitializers: Never 2023-02-20 10:23:59 -07:00
imglib.hh qbsp: shrink node_t from 280 to 208 bytes 2024-03-09 19:37:23 -07:00
iterators.hh
json.hh
litfile.hh light: LIGHTING_E5BGR9 + HDR .lit support (#427) 2024-05-26 21:55:10 -06:00
log.hh some more memory adjustments 2024-05-20 11:28:03 -04:00
mapfile.hh qbsp: use mapfile.cc for .map file parsing 2024-04-07 22:20:33 -06:00
mathlib.hh Paril/mem write (#412) 2024-03-13 20:01:05 -06:00
numeric_cast.hh common: move numeric_cast to dedicated common/numeric_cast.hh 2023-06-25 17:50:17 -06:00
ostream.hh build: only use <fmt/core.h>, other headers have a heavy compilation time impact 2023-07-02 17:08:14 -06:00
parallel.hh add missing #pragma once's 2023-11-08 21:30:44 -07:00
parser.hh maputil starting point 2023-09-04 00:16:23 -04:00
polylib.hh light: change remaining double -> float 2024-02-25 23:42:45 -07:00
prtfile.hh light: change remaining double -> float 2024-02-25 23:42:45 -07:00
qvec.hh rename: vec_t -> double 2023-12-23 21:09:16 -07:00
settings.hh some more memory adjustments 2024-05-20 11:28:03 -04:00
threads.hh
vectorutils.hh