Commit Graph

17 Commits

Author SHA1 Message Date
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
Eric Wasylishen ea8a733b37 tests: add _suntexture test 2024-02-05 23:47:23 -07:00
Eric Wasylishen 06b5e6dc64 docs: improve light entity documentation 2024-02-04 13:02:06 -07:00
Eric Wasylishen c7df4305f8 docs: add undocumented light bmodel keys 2024-01-27 23:58:39 -07:00
jjelliott 5eb5d2862d
Add missing docs key (#409)
* Add missing key (_surface_radiosity)

* docs: add link from _surface_radiosity to _surface

* docs: add link to _surflight_radiosity

---------

Co-authored-by: Eric Wasylishen <ewasylishen@gmail.com>
2024-01-25 09:40:07 -07:00
Eric Wasylishen a1e561fa3f docs: note that _bouncestyled defaults to 1 now 2024-01-21 10:09:32 -07:00
Jonathan 147be8f87a some optimizations in indirect lighting code
multiple bounce support
2023-09-16 00:41:05 -04:00
Eric Wasylishen 1bf726de9e docs: document _surflightscale + _surflightskyscale 2023-08-17 01:13:01 -06:00
Eric Wasylishen 54d5838f29 docs: fill in some missing docs
- fix comments around new BSPX lumps
2023-08-13 22:38:31 -06:00
Jonathan 08db6e9bf9 remove fastbounce, add emissivequality
emissivequality affects both emissives
2023-06-19 09:54:25 -04:00
Eric Wasylishen 486f848061 docs: update light documentation 2023-05-03 00:55:08 -06:00
Eric Wasylishen 1634470f88 docs: misc tweaks 2023-04-14 23:26:58 -06:00
Eric Wasylishen 3ac223e7c0 docs: document lighting channels 2023-04-10 12:33:43 -06:00
Eric Wasylishen a8d84ee149 light: add "minlight_mottle" as an alias for "minlightMottle" 2023-04-02 17:48:51 -06:00
Eric Wasylishen c4910a158f docs: add custom directives 2023-02-16 17:25:34 -07:00
Eric Wasylishen 2ab779556a docs: format other manuals 2022-01-26 23:19:37 -07:00
Eric Wasylishen 663c0a8f98 docs: Initial conversion from man to rst using pandoc 2022-01-26 23:19:37 -07:00