Eric Wasylishen
|
4c0194a05f
|
Revert "Revert "light: CalcPoints: also check submodel traces against the world""
This reverts commit c9b9ae568c.
|
2016-11-20 00:51:20 -07:00 |
Eric Wasylishen
|
d0d7a424d3
|
light: change isnan() to std::isnan()
should fix https://github.com/ericwa/tyrutils-ericw/issues/118 (Ubuntu 16.04 build)
|
2016-11-14 11:38:32 -07:00 |
Eric Wasylishen
|
c9b9ae568c
|
Revert "light: CalcPoints: also check submodel traces against the world"
This reverts commit 1cca79710c.
|
2016-11-06 23:43:07 -07:00 |
Eric Wasylishen
|
1cca79710c
|
light: CalcPoints: also check submodel traces against the world
fixes https://github.com/ericwa/tyrutils-ericw/issues/115
|
2016-11-04 02:14:05 -06:00 |
Eric Wasylishen
|
dfcbfe5be1
|
light: fix invalid assertion (with glass, final ray color can be darker than initial)
|
2016-11-04 01:34:36 -06:00 |
Eric Wasylishen
|
11304cf059
|
light: hack around invalid normals in bounce lighting patches.. needs further investigation
|
2016-11-04 01:26:48 -06:00 |
Eric Wasylishen
|
186485ec47
|
light: revert ee89d41b6d since it's now handled within the trace code
|
2016-11-03 18:27:40 -06:00 |
Eric Wasylishen
|
6bd8864ff4
|
light: refactor LightFace_Sky
|
2016-11-03 01:44:17 -06:00 |
Eric Wasylishen
|
ee89d41b6d
|
light: light passing through glass lights up the back side, scaled by (1-alpha)
|
2016-11-02 21:35:11 -06:00 |
Eric Wasylishen
|
e5901dfee6
|
light: ensure modelinfo settings override .texinfo file if they have been set, for _dirt and _minlight
|
2016-11-02 18:10:59 -06:00 |
Eric Wasylishen
|
fbeba25bd1
|
light: read _mincolor from .texinfo file
|
2016-11-02 17:23:25 -06:00 |
Eric Wasylishen
|
a6468984bf
|
all: finish c++ification
|
2016-10-17 19:52:17 -06:00 |
Eric Wasylishen
|
57834c438b
|
light: add "_lightignore" model key
|
2016-09-20 16:15:12 -06:00 |
Eric Wasylishen
|
c615839abb
|
light: don't save lightmaps where the maximum brightness is < 1
|
2016-09-20 00:17:12 -06:00 |
Eric Wasylishen
|
46a56df19f
|
light: add -bouncelightsdebug switch to render bounce lights
|
2016-09-20 00:04:02 -06:00 |
Eric Wasylishen
|
1d7fea8486
|
light: simplify debug mode condition
|
2016-09-19 22:14:40 -06:00 |
Eric Wasylishen
|
9500fd8ebb
|
light: apply minlight after adding bounce lights
|
2016-09-19 19:47:53 -06:00 |
Eric Wasylishen
|
fdb5394cc5
|
light: remove hack requiring a light to add 1 unit of light to a lightmap, as it can cause artifacts, and it's redundant with -gate
|
2016-09-19 12:34:32 -06:00 |
Eric Wasylishen
|
1045505670
|
light: avoid bouncing negative lights
|
2016-09-19 12:15:26 -06:00 |
Eric Wasylishen
|
18f0b89ee6
|
light: build fix for MSVC
|
2016-09-18 15:50:31 -06:00 |
Eric Wasylishen
|
0786b513a2
|
light: fix build of 073ede98c7
|
2016-09-18 15:46:42 -06:00 |
Eric Wasylishen
|
857b4402ad
|
light: change assertions to Q_assert (so they are all enabled in release builds)
|
2016-09-18 15:41:56 -06:00 |
Eric Wasylishen
|
073ede98c7
|
light: when there are too many lightstyles on a face, sort them by descending average brightness and take the top 4
previous behaviour was random, which made needlessly ugly artifacts.
|
2016-09-18 15:12:57 -06:00 |
Eric Wasylishen
|
8bff999601
|
light: move lightmaps array to lightsurf_t
|
2016-09-18 02:22:26 -06:00 |
Eric Wasylishen
|
1a74834221
|
light: never receive dirtmapping on lit liquids
|
2016-09-16 11:37:04 -06:00 |
Eric Wasylishen
|
2bab853ca4
|
light: don't add styled lights to bounce calculation
|
2016-09-08 23:53:15 -06:00 |
Eric Wasylishen
|
ce812f5570
|
light: apply AO when calculating how much light a surface reflects (wrong? but matches 0.15.5)
|
2016-09-08 21:07:29 -06:00 |
Eric Wasylishen
|
08e1c1ce69
|
light: apply dirt to regular lights
|
2016-09-08 17:24:28 -06:00 |
Eric Wasylishen
|
a0f3881698
|
light: refactor global settings into a class
|
2016-08-12 18:49:32 -06:00 |
Eric Wasylishen
|
e2f407a0e7
|
light: refactor GetDirectLighting
|
2016-08-12 12:00:33 -06:00 |
Eric Wasylishen
|
cc0d1f6b76
|
light: restore normalmap contribution in LightFace_Entity
|
2016-08-12 11:55:35 -06:00 |
Eric Wasylishen
|
8ca5fafffc
|
light: some refactoring
|
2016-08-11 15:44:43 -06:00 |
Eric Wasylishen
|
4f58f61aad
|
light: GetLightDist: use entity->getFormula()
|
2016-08-11 14:37:26 -06:00 |
Eric Wasylishen
|
b849a79c3f
|
light: move GetDir to mathlib
|
2016-08-11 14:16:23 -06:00 |
Eric Wasylishen
|
9f607b858b
|
light: Add GetLightDist function
|
2016-08-10 12:22:41 -06:00 |
Eric Wasylishen
|
28b034a172
|
light: drop visdata support, no longer needed
|
2016-08-10 00:49:41 -06:00 |
Eric Wasylishen
|
f3a1700d13
|
light: scale and clamp before smoothing, downscaling. fixes https://github.com/ericwa/tyrutils-ericw/issues/15
|
2016-08-09 22:19:11 -06:00 |
Eric Wasylishen
|
125f35e35f
|
light: coding style fixes
|
2016-08-09 21:47:20 -06:00 |
Eric Wasylishen
|
59f1ef9a1e
|
light: bounce: only save style 0 lightmap if some traces hit
|
2016-08-09 20:55:28 -06:00 |
Eric Wasylishen
|
af2f68c036
|
light: culling for local minlights
|
2016-08-09 19:37:52 -06:00 |
Eric Wasylishen
|
df8669a5fe
|
light: record stats for local minlight ents
|
2016-08-09 19:37:40 -06:00 |
Eric Wasylishen
|
677875a63e
|
light: cull lights based on estimated visible AABB of each light
|
2016-08-09 18:16:32 -06:00 |
Eric Wasylishen
|
1d4de5c17d
|
light: add more performance stats
|
2016-08-09 17:11:08 -06:00 |
Eric Wasylishen
|
7d5067bddd
|
light: Add stats
|
2016-08-09 01:15:26 -06:00 |
Eric Wasylishen
|
3d5ab0db68
|
light: use LightSample_Brightness
|
2016-08-09 00:41:49 -06:00 |
Eric Wasylishen
|
68e1736ad1
|
light: move more stuff to bsputils.cc
|
2016-08-07 23:07:20 -06:00 |
Eric Wasylishen
|
486606eb88
|
light: rename GetSurfaceVertex to Face_VertexAtIndex
|
2016-08-07 22:57:45 -06:00 |
Eric Wasylishen
|
1a0fb22e40
|
light: move some helper functions to common/bsputils.{h,cc}
|
2016-08-07 22:55:44 -06:00 |
Eric Wasylishen
|
5e6f2220e8
|
light: quick hack fix of spotlights in bounce mode
|
2016-08-06 17:31:39 -06:00 |
Eric Wasylishen
|
a807204fe6
|
build: vs2013 compat changes
|
2016-08-06 15:37:00 -07:00 |