Skip to content

Conversation

@ericwa
Copy link
Owner

@ericwa ericwa commented May 26, 2024

Wrapping up #421 (and Spike's initial HDR code from #280)

Working in this PR, in Q1 maps:

  • light flag: -hdr to generate a HDR .lit file
  • light flag: -bspxhdr to generate a LIGHTING_E5BGR9 BSPX lump
  • rendering both formats in lightpreview

Things that are untested / probably broken:

  • usage in Q2
  • usage with DECOUPLED_LM

Definitely not working:

  • -novanilla + -bspxhdr (the -novanilla seems to be ignored)

@ericwa ericwa merged commit 30868ea into brushbsp May 27, 2024
@ericwa ericwa deleted the hdr branch June 25, 2024 03:47
KurtLoeffler pushed a commit to KurtLoeffler/ericw-tools that referenced this pull request Oct 24, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants