Eric Wasylishen
b849a79c3f
light: move GetDir to mathlib
2016-08-11 14:16:23 -06:00
Eric Wasylishen
4fb903bd8e
common: add more AABB functions
2016-08-09 17:56:55 -06:00
Eric Wasylishen
79525b9aee
common: mathlib: add UniformPointOnSphere
2016-08-09 17:20:51 -06:00
Eric Wasylishen
0b6578e4b3
common: mathlib: add some AABB functions
2016-08-09 16:27:51 -06:00
Eric Wasylishen
4be2fe289e
common: add RandomDir
2016-08-09 15:29:23 -06:00
Eric Wasylishen
a807204fe6
build: vs2013 compat changes
2016-08-06 15:37:00 -07:00
Eric Wasylishen
a6f4dad172
light, vis: move plane_t to mathlib.h
2016-05-19 15:26:30 -06:00
Eric Wasylishen
f73b9de0b3
common: make VectorLength, VectorNormalize static inline
2016-05-13 21:10:00 -06:00
Eric Wasylishen
d5a4e07deb
common: fix VECT_MAX macro
2016-04-10 14:43:17 -06:00
Eric Wasylishen
f641e93ca2
light: convert light.c to light.cc
2016-03-02 17:07:02 -07:00
Eric Wasylishen
063786bf02
build: fix spurious errors in VS2015 IDE
2015-12-07 14:37:46 -08:00
Eric Wasylishen
741d341332
Dirtmapping (ambient occlusion) from q3map2
2015-04-25 20:45:32 -06:00
Kevin Shanahan
5facda6ff9
common: constify vec3_origin
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-08-20 13:30:05 +09:30
Kevin Shanahan
1dc62b426a
common: add VecStrf debugging helper and increase buffers to 8
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-13 12:57:56 +10:30
Kevin Shanahan
a8d8150791
light: implement the -gate option
...
Precalculate the distance at which lights will fade to zero brightness.
For lights with inverse falloff, use the gate value to determine the
cut-off distance. Use this value to cull samples and avoid the ray
tracing overhead.
Hopefully not too controversially, I am going to default this to "on" with
a gate value of 0.001. Unless you have > 1000 lights contributing
fractional light values across your map, this is not going to make any
visible difference.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-03 13:36:52 +10:30
Kevin Shanahan
625fc2c61b
common: add VecStr convenience function
...
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-02 11:25:40 +10:30
Tyrann
2c2f3c8eb6
Import initial sources
2006-08-28 23:58:10 +09:30