Commit Graph

27 Commits

Author SHA1 Message Date
Eric Wasylishen 9f4cfb0c3d cleanup: code formatting pass 2024-11-18 21:25:27 -07:00
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 1b289d3b26 lightpreview: show leaf contents in status bar 2024-03-24 21:18:37 -06:00
Eric Wasylishen 1f02b50441 lightpreview: add "Camera Bookmarks" submenu 2024-02-25 23:35:50 -07:00
Eric Wasylishen 04097a0ecc lightpreview: add stats panel 2024-02-24 15:17:19 -07:00
Eric Wasylishen 9388d43b1c lightpreview: add checkbox for skipping light
fixes #394
2023-11-25 19:24:17 -07:00
Eric Wasylishen 832d7d0413 lightpreview: add .lit loading 2023-09-03 11:31:41 -06:00
Jonathan 131e395470 add common args 2023-08-15 07:51:35 -04:00
Eric Wasylishen fbea58d679 code formatting pass 2023-06-25 18:29:48 -06:00
Eric Wasylishen 10581327b3 build: remove some unneeded includes from bspfile.hh 2023-06-25 16:35:26 -06:00
Jonathan caa7418375 async threading for map progress, etc. no cancelling yet 2023-06-19 15:38:16 -04:00
Jonathan da2e6936d1 allow toggling BSPX loading 2023-06-16 03:40:04 -04:00
Eric Wasylishen 35fa5bd129 lightpreview: add "Nearest filter" checkbox 2023-06-11 23:20:07 -06:00
Eric Wasylishen f2ecb9fe1c lightpreview: add "Open Recent" submenu 2023-06-03 14:02:34 -06:00
Eric Wasylishen 83967699aa lightpreview: convert to dock widgets. add placeholder output log 2023-06-03 12:31:14 -06:00
Jonathan 1e91b21989 use timed file watching, so we only compile any given map once 2023-05-30 12:14:56 -04:00
Eric Wasylishen 3e51f2aeaa lightpreview: report camera position to main window 2023-05-28 00:27:52 -06:00
Jonathan 18a5b37d4f lightstyle stuff 2023-05-24 21:48:39 -04:00
Eric Wasylishen 901e87bce8 lightpreview: prompt for screenshot path 2023-05-24 00:55:31 -06:00
Eric Wasylishen 0d0d11314c lightpreview: support map as command line arg
- fix splitter behaviour to not resize left pane
2023-05-24 00:42:39 -06:00
Eric Wasylishen 474bf83a0b lightpreview: start adding file menu 2023-05-23 00:48:31 -06:00
Jonathan 444a8e23ae lightpreview: spawn at first info_player_start
lightpreview: don't mipmap lightmap; mipmap and anisotropy on textures though
2023-05-21 22:26:05 -04:00
Eric Wasylishen 0531b79b0b lightpreview: add reload button 2023-05-21 13:27:05 -06:00
Eric Wasylishen 295dc4a537 lightpreview: add text fields for qbsp/vis/light options 2023-05-21 00:03:32 -06:00
Eric Wasylishen d466deed91 lightpreview: reboot
- link against qbsp + vis + light + embree + tbb + fmt
- remove .pro, .ui
- setup filesystem watcher
- accept .map files via dnd, run qbsp + light + vis
2023-05-15 00:23:30 -06:00
Jonathan 4e7542b111 Clang format pass
typedef -> using
include guards -> pragma once
typedef struct x { } y; -> struct y { }
some fixes to extremely old code that shouldn't be required any more
2021-09-14 02:32:26 -04:00
Eric Wasylishen 62f70ec852 stub for lightpreview tool 2017-04-28 13:29:37 -06:00