Eric Wasylishen
|
30d9a53341
|
light: move FractionOfLine to mathlib
|
2017-03-18 23:26:16 -06:00 |
Eric Wasylishen
|
3e7b4448c1
|
mathlib: add GLM_PolyArea
|
2017-03-18 23:26:10 -06:00 |
Eric Wasylishen
|
880ad3b381
|
bpsutil, common, light, vis: bounds check bsp->dfaces access
|
2017-03-18 16:31:52 -06:00 |
Eric Wasylishen
|
8a83e3d351
|
light: BounceLightsForFaceNum(): return indices so we have 1 main copy of the bounce lights
|
2017-03-15 13:22:43 -06:00 |
Eric Wasylishen
|
c2c3e915e6
|
light: fix leak of lightsurf->realfacenums
|
2017-03-15 13:22:35 -06:00 |
Eric Wasylishen
|
aa10d2da93
|
common: add std::vector<glm::vec3> polylib::GLM_WindingPoints(const winding_t *w)
|
2017-03-15 10:59:46 -06:00 |
Eric Wasylishen
|
33fbe56e12
|
light: save poly edge planes for bouncelights
|
2017-03-15 10:59:31 -06:00 |
Eric Wasylishen
|
1d66039b2c
|
light: save poly for bouncelights
|
2017-03-15 10:59:25 -06:00 |
Eric Wasylishen
|
154158ddba
|
light: BounceLightsForFaceNum: avoid an unnecessary std::vector copy
|
2017-03-15 10:59:16 -06:00 |
Eric Wasylishen
|
686696c362
|
light: Palette_GetColor: return glm vector
|
2017-03-12 15:41:52 -06:00 |
Eric Wasylishen
|
102bdc49f0
|
light: drop IntersectSingleModel api
|
2017-03-12 15:06:07 -06:00 |
Eric Wasylishen
|
0eb6864744
|
mathlib: add GLM_PolyRandomPoint
|
2017-03-12 12:58:36 -06:00 |
Eric Wasylishen
|
ccb6ea27b1
|
light: some temporary api compatibility stuff
|
2017-03-12 12:58:30 -06:00 |
Eric Wasylishen
|
63e8f42c87
|
light: ray stream api: allow getting hit face
|
2017-03-07 13:37:52 -07:00 |
Eric Wasylishen
|
902fe7073c
|
mathlib: add RotateFromUpToSurfaceNormal
|
2017-03-07 13:13:24 -07:00 |
Eric Wasylishen
|
3ba1859be4
|
mathlib: CosineWeightedHemisphereSample
|
2017-03-07 12:45:54 -07:00 |
Eric Wasylishen
|
553f02d582
|
light: restore performance of bounce lighting
|
2017-03-06 22:50:20 -07:00 |
Eric Wasylishen
|
48a6314dfb
|
light: bounce styled lights
|
2017-03-05 20:05:34 -07:00 |
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
|
34947ced9c
|
light: delete RotationAboutLineSegment
|
2017-02-27 19:06:28 -07:00 |
Eric Wasylishen
|
69d5669773
|
light: delete some dead code
|
2017-02-27 17:43:56 -07:00 |
Eric Wasylishen
|
97a00f0f41
|
light: avoid recomputing things in CalcPointNormal
|
2017-02-26 22:58:08 -07:00 |
Eric Wasylishen
|
6c946038ee
|
light: move edgeToFaceMap_t stuff to phong.hh/cc
|
2017-02-25 14:44:59 -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
|
29c7f79a0b
|
light: misc stuff
|
2017-02-23 20:53:10 -07:00 |
Eric Wasylishen
|
d88581e2da
|
light: add GLM_ProjectPointOntoPlane
|
2017-02-22 01:40:58 -07:00 |
Eric Wasylishen
|
cafadddb62
|
light: expose faceextents_t in header
|
2017-02-21 22:59:40 -07:00 |
Eric Wasylishen
|
8ab0ef9687
|
mathlib: redo bilinear interpolation
|
2017-02-21 21:19:07 -07:00 |
Eric Wasylishen
|
044bd4c9c0
|
mathlib: PointsAlongLine: make into template
|
2017-02-21 21:18:22 -07:00 |
Eric Wasylishen
|
8067e0fa45
|
mathlib: add PointsAlongLine
|
2017-02-21 21:18:16 -07:00 |
Eric Wasylishen
|
29ecd209a2
|
add comment
|
2017-02-20 14:33:46 -07:00 |
Eric Wasylishen
|
d40c6b9912
|
mathlib: add bilinear interpolation
|
2017-02-20 14:32:31 -07:00 |
Eric Wasylishen
|
c4f3897f47
|
light: Adjust epsilon
|
2017-02-16 15:57:24 -07:00 |
Eric Wasylishen
|
6f66473836
|
light: add mangle_from_vec
|
2017-02-14 23:45:38 -07:00 |
Eric Wasylishen
|
52523c8208
|
mathlib: expose GLM_MakeInwardFacingEdgePlane()
|
2017-02-13 13:33:48 -07:00 |
Eric Wasylishen
|
2a17b4bccf
|
build fix
|
2017-02-12 11:54:52 -07:00 |
Eric Wasylishen
|
3a20d5410b
|
common: add shrink and clip poly funcs
|
2017-02-12 00:20:38 -07:00 |
Eric Wasylishen
|
7300aacdff
|
light: Add -debugoccluded
|
2017-02-11 22:22:26 -07:00 |
Eric Wasylishen
|
1957fb1489
|
light: expose WorldToTexCoord_HighPrecision() in header
|
2017-02-11 15:45:50 -07:00 |
Eric Wasylishen
|
5fe4f23371
|
light: add a debug mode for showing contributing faces
|
2017-02-11 15:45:30 -07:00 |
Eric Wasylishen
|
b54f893942
|
common: add GLM_InterpolateNormal
|
2017-02-11 11:02:37 -07:00 |
Eric Wasylishen
|
8ed7544063
|
light: fix up barycentric coords code, add tests
|
2017-02-11 11:02:28 -07:00 |
Eric Wasylishen
|
9aae46bd1c
|
light: adjust Light_PointInSolid to take a model param
|
2017-02-10 15:54:07 -07:00 |
Eric Wasylishen
|
1f40e3a58f
|
light: extra field for contrib faces
|
2017-02-10 15:52:12 -07:00 |
Eric Wasylishen
|
a9f99076fd
|
common: add GLM_ClosestPointOnPolyBoundary
|
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 |
Eric Wasylishen
|
d30c970d8b
|
light: always call MakeEdgeToFaceMap
|
2017-02-10 15:52:12 -07:00 |
Eric Wasylishen
|
b9d0de0ec8
|
light: expose some stuff in the light2 header
|
2017-02-10 15:52:12 -07:00 |