Eric Wasylishen
|
1045505670
|
light: avoid bouncing negative lights
|
2016-09-19 12:15:26 -06:00 |
Eric Wasylishen
|
b4e30032a3
|
light: MakeBounceLightsThread: avoid zero-area or small patches, which were getting NaN colors
|
2016-09-19 12:11:41 -06:00 |
Eric Wasylishen
|
8dab875adc
|
light: CheckTargets: also check for unmatched targetnames
|
2016-09-18 17:30:21 -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
|
a2dc35a91f
|
light: fix debug logging
|
2016-09-18 03:03:29 -06:00 |
Eric Wasylishen
|
8bff999601
|
light: move lightmaps array to lightsurf_t
|
2016-09-18 02:22:26 -06:00 |
Eric Wasylishen
|
700e8d089f
|
light: add -verbose option
|
2016-09-17 23:49:41 -06:00 |
Eric Wasylishen
|
81c7b39fa7
|
light: tidy LightStyleForTargetname
|
2016-09-17 17:49:01 -06:00 |
Eric Wasylishen
|
f5d347a18d
|
light: always assign "style" if targetname is set on a light
|
2016-09-17 17:48:11 -06:00 |
Eric Wasylishen
|
1a74834221
|
light: never receive dirtmapping on lit liquids
|
2016-09-16 11:37:04 -06:00 |
Eric Wasylishen
|
c7d210dc3a
|
light: special case support for skip-textured bmodels in the embree backend.
It only supports bmodels where all the faces are skipped
|
2016-09-10 18:32:22 -06:00 |
Eric Wasylishen
|
d7ba0330a6
|
light: restore "unmatched target" warning
|
2016-09-10 10:10:06 -06:00 |
Eric Wasylishen
|
bcddaf10dd
|
docs: update
|
2016-09-09 13:30:36 -06:00 |
Eric Wasylishen
|
687b1b20f6
|
light: bsp backend: fix and simplify Face_Contents to only look at texture names. it was broken when -splitspecial was used.
|
2016-09-09 13:04:53 -06:00 |
Eric Wasylishen
|
2bab853ca4
|
light: don't add styled lights to bounce calculation
|
2016-09-08 23:53:15 -06:00 |
Eric Wasylishen
|
eaec325ab4
|
light: bounce: area-weight the patches when averaging them to get the light to emit for a face
|
2016-09-08 21:39:37 -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
|
18797f81c0
|
light: fix for -dirt not implying -minlight_dirt, -sunlight_dirt, -sunlight2_dirt
|
2016-09-08 15:21:18 -06:00 |
Eric Wasylishen
|
272995765b
|
light: warn about empty key/values
|
2016-09-07 20:32:59 -06:00 |
Eric Wasylishen
|
66184a3849
|
light: CalcualateVertexNormals: skip degenerate faces
|
2016-09-07 15:12:19 -06:00 |
Eric Wasylishen
|
9111d8df9f
|
light: log embree version
|
2016-09-02 14:59:43 -06:00 |
Eric Wasylishen
|
e06556edfd
|
build: run tests on CI servers
|
2016-08-15 23:28:36 -06:00 |
Eric Wasylishen
|
5e9b62dc8b
|
light: add "testlight" target
|
2016-08-15 21:18:14 -06:00 |
Eric Wasylishen
|
d7948c4bdd
|
light: move settings system to its own files
|
2016-08-12 19:15:25 -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
|
ed43b29489
|
light: store normal contribution in ray stream
|
2016-08-12 11:51:27 -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
|
3d19354514
|
light: EstimateVisibleBoundsAtPoint: increase to 1024 samples to fix lightstest1.map.
remove randomness. only expand AABB by 1% down from 10%, since using 1024 samples now, bbox will be closer to the actual one.
|
2016-08-09 23:31:48 -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
|
f857ab5820
|
light: remove redundant message
|
2016-08-09 21:19:24 -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
|
9340ce223a
|
build: clean up request for C++11. require cmake 3.1 (which introduced CMAKE_CXX_STANDARD)
|
2016-08-09 16:00:09 -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
|
3f573bd276
|
light: fix sign error in sunlight2 positioning
|
2016-08-08 20:36:31 -06:00 |