Commit Graph

119 Commits

Author SHA1 Message Date
Eric Wasylishen 461afbc15d light: remove ltface2.cc/hh 2017-03-01 13:20:09 -07:00
Eric Wasylishen b163f766bb light: drop unneeded light2.cc/hh 2017-02-27 19:10:55 -07:00
Eric Wasylishen 69d5669773 light: delete some dead code 2017-02-27 17:43:56 -07:00
Eric Wasylishen d513f43540 light: remove more tuple initializer lists 2017-02-27 12:40:03 -07:00
Eric Wasylishen 1c80f8c8d8 light: don't use initializer lists to construct tuples (for gcc) 2017-02-27 12:35:05 -07:00
Eric Wasylishen ea382c50f2 light: don't use constexpr (for vs2013) 2017-02-27 12:33:03 -07:00
Eric Wasylishen 97a00f0f41 light: avoid recomputing things in CalcPointNormal 2017-02-26 22:58:08 -07:00
Eric Wasylishen 410bec9d62 light: wip: make CalcPointNormal also position the point 2017-02-26 00:28:23 -07:00
Eric Wasylishen 6c946038ee light: move edgeToFaceMap_t stuff to phong.hh/cc 2017-02-25 14:44:59 -07:00
Eric Wasylishen abf0c13b2d light: cleaning CalcPointNormal 2017-02-25 13:31:56 -07:00
Eric Wasylishen 22b5684c23 light: save the actual face number of each sample point 2017-02-24 21:05:59 -07:00
Eric Wasylishen a183be75d7 light: minor tidying of CalcPoints ifdef 2017-02-24 14:11:47 -07:00
Eric Wasylishen 278c5f5b2b light: LightFace_OccludedDebug: clear occluded flag in this debug mode 2017-02-24 00:24:29 -07:00
Eric Wasylishen 29c7f79a0b light: misc stuff 2017-02-23 20:53:10 -07:00
Eric Wasylishen b31ae5d243 light: ltface.cc: use glm namespace 2017-02-20 14:39:56 -07:00
Eric Wasylishen 6c9f9f9727 light: fix minlight handling 2017-02-20 14:37:46 -07:00
Eric Wasylishen c17c33a71c light: rewrite blur 2017-02-20 14:37:41 -07:00
Eric Wasylishen 7c0e8f9b24 light: fix -extra4 downsampling to use occlusion values 2017-02-20 14:37:36 -07:00
Eric Wasylishen 418d83cbeb light: skip raytracing occluded points 2017-02-20 14:36:50 -07:00
Eric Wasylishen 365c143039 light: use mangle_from_vec in CalcPoints_Debug to dump point normal 2017-02-14 23:52:39 -07:00
Eric Wasylishen 7300aacdff light: Add -debugoccluded 2017-02-11 22:22:26 -07:00
Eric Wasylishen 5fe4f23371 light: add a debug mode for showing contributing faces 2017-02-11 15:45:30 -07:00
Eric Wasylishen 6f72ab5eda light: CalcPoints_Debug: log 'occluded' state 2017-02-10 15:54:35 -07:00
Eric Wasylishen 57d8ed77ea light: CalcPoints: call SetupContributingFaces 2017-02-10 15:52:12 -07:00
Eric Wasylishen 87868275de light: clean CalcPoints 2017-02-10 15:52:12 -07:00
Eric Wasylishen 71a3dd769a light: clean up LightFace() function 2017-02-10 15:52:12 -07:00
seth 10df0bf88e Merge remote-tracking branch 'upstream/master' 2017-02-10 16:53:17 -05:00
Eric Wasylishen bd0556cf22 light: switch to new Face_Centroid 2017-02-09 00:17:22 -07:00
Eric Wasylishen f09cadbc76 light: switch to new world space <-> texture space code 2017-02-08 17:51:22 -07:00
Eric Wasylishen 70644907e0 Revert "light: move Lightmap_Soften into WriteLightmaps"
This reverts commit bc2d734e9a.
2017-02-08 17:10:26 -07:00
Eric Wasylishen b1fdca16c7 light: helpers for gamma correct downscaling (unused) 2017-02-08 16:53:20 -07:00
Eric Wasylishen c441ddb884 light: factor out lightmap resampling 2017-02-08 15:03:24 -07:00
Eric Wasylishen bc2d734e9a light: move Lightmap_Soften into WriteLightmaps 2017-02-08 02:23:21 -07:00
Eric Wasylishen 089819d672 light: tweak .ppm dump code 2017-02-07 20:52:17 -07:00
Eric Wasylishen 4da0a70ab6 light: refactor box filtering code a bit 2017-02-07 20:51:57 -07:00
Eric Wasylishen ea39ce6576 light: move negative value clamping to LightFace_ScaleAndClamp 2017-02-07 20:33:43 -07:00
Eric Wasylishen 613d75ea70 light: debug code for dumping lightmaps to .ppm images 2017-02-07 18:35:29 -07:00
Eric Wasylishen 4582637c78 light: restore Lightmap_ForStyle_ReadOnly 2017-02-07 17:59:16 -07:00
Eric Wasylishen 1211fd86d1 light: move bounce to its own file 2017-02-07 00:51:05 -07:00
Eric Wasylishen c7756496cd light: move phong shading code to its own file 2017-02-07 00:06:29 -07:00
Eric Wasylishen f018b7324d light: refactor phong shading to use GLM 2017-02-06 22:50:56 -07:00
Eric Wasylishen 7fdb77188c light: work-in-progress stuff 2017-02-06 21:57:49 -07:00
seth e68e38a08f Merge remote-tracking branch 'upstream/master'
Fixed conflicts
2017-02-05 14:06:24 -05:00
seth 4a119e2098 Added _bouncescale to light sources 2017-02-05 13:47:47 -05:00
Eric Wasylishen 3ad6aab406 light: refactor WriteLightmaps 2017-02-01 14:38:42 -07:00
Eric Wasylishen 9330d2c087 light: rename Face_MakeInwardFacingEdgePlanes() to Face_AllocInwardFacingEdgePlanes()
do memory allocation inside the function.
2017-02-01 14:38:42 -07:00
Eric Wasylishen 4ec1d92191 light: dirt_off_radius, dirt_on_radius 2017-01-30 16:11:56 -07:00
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