Commit Graph

197 Commits

Author SHA1 Message Date
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
Eric Wasylishen 7029ed5713 light: clean headers 2016-08-04 16:32:04 -06:00
Eric Wasylishen fcc54c547f light: change CalcPoints to only trace the model the face belongs to 2016-08-04 12:24:07 -06:00
Eric Wasylishen 2a3b87bf1f light: rework bounce lighting for less memory use 2016-08-03 14:00:58 -06:00
Eric Wasylishen b4e0a7a5fa light: GetLightValue: remove extra param 2016-07-31 18:53:41 -06:00
Eric Wasylishen 307d0efc28 light: minor cleanups 2016-07-31 17:00:35 -06:00
Eric Wasylishen 03f703d931 light: remove redundant light value from lightsample_t 2016-07-31 11:47:27 -06:00
Eric Wasylishen 882348ac0a light: use embree ray stream api 2016-07-30 00:40:45 -06:00
Eric Wasylishen f4a363b416 light: make DirtTrace return a hittype_t 2016-07-27 13:07:50 -06:00
Eric Wasylishen 197c898976 light: hack to allow "-dirt 0" to disable all dirmapping (todo: check -dirt 1 implies minlight, sunlight dirt properly?) 2016-07-27 12:37:57 -06:00
Eric Wasylishen 5b9405a93e light: move suns to a std::vector 2016-07-27 11:05:54 -06:00
Eric Wasylishen 7757e834a3 light: clean up dirtmapping logic 2016-07-26 21:08:04 -06:00
Eric Wasylishen fb1288a5c0 light: rename entity_t to light_t 2016-07-26 18:03:43 -06:00
Eric Wasylishen 02a2cee6a7 light: store lights in a vector (untested) 2016-07-26 02:13:58 -06:00
Eric Wasylishen dc856a329d light: use settings system for lights 2016-07-24 12:23:46 -06:00
Eric Wasylishen 5566e1f85d light: convert modelinfo_t to use settings system 2016-07-24 00:26:42 -06:00
Eric Wasylishen f7d3bfbeb3 Merge branch 'stable' 2016-07-20 19:12:23 -06:00
Eric Wasylishen 08a6733204 light: refactor settings system 2016-07-13 22:55:55 -06:00
Eric Wasylishen d467888d89 light: register settings in a map 2016-07-13 22:11:21 -06:00
Eric Wasylishen cd013405e7 light: convert more settings to lockable_*_t 2016-07-13 21:51:04 -06:00
Eric Wasylishen 7646175048 Merge branch 'stable'
* stable:
  light: trace: raise stack depth 128->256 to handle lavabloom_bad.bsp from Pritchard
  light: use Face_TextureName() everywhere we need texture names. Handle negative miplump->dataofs[texnum].
  build: appveyor: use v140_xp toolset for xp compatibility

# Conflicts:
#	appveyor.yml
2016-07-12 00:25:50 -06:00
Eric Wasylishen e012a2c93e light: finish c++ifying 2016-07-06 13:14:06 -06:00
Eric Wasylishen d225891ef5 light: c++ify remaining files 2016-07-05 22:27:41 -06:00