Commit Graph

174 Commits

Author SHA1 Message Date
Eric Wasylishen 8c28413a31 light: obj export: only export model 0 2016-04-26 00:22:26 -06:00
Eric Wasylishen 5ac18e5c6f light: index some PVS info at startup 2016-04-22 20:11:59 -06:00
Eric Wasylishen 1ea4d52eab light: add -novis flag 2016-04-20 23:57:04 -06:00
Eric Wasylishen 03df93851b light: phong shading: handle some sources of nan's 2016-04-19 19:33:49 -06:00
Eric Wasylishen 2a4168f35c light: add _minlight_exclude bmodel key 2016-04-17 22:51:14 -06:00
Eric Wasylishen 32b48a443b light: track interior verts for normal interpolation (not used currently) 2016-04-14 15:13:01 -06:00
Eric Wasylishen c6d8aff03b light: guard against acos returning nan due to fp error in CalcualateVertexNormals 2016-04-11 01:49:02 -06:00
Eric Wasylishen ed6dfbaf76 light: disable obj exporter 2016-04-11 01:14:54 -06:00
Eric Wasylishen 8228bf979f light: obj exporter 2016-04-11 00:46:42 -06:00
Eric Wasylishen 986334a86b light: unify "_anglescale" worldspawn key and "-anglescale" command line option, previously they were different.
Fix "-anglescale" command line option which was broken.
Make sunlight2 use the global anglescale setting.
2016-04-10 18:25:15 -06:00
Eric Wasylishen 0a6708edb0 light: remove embree support 2016-04-10 14:43:37 -06:00
Eric Wasylishen c135ab6b2b light: error if bsp->nummodels == 0 2016-04-07 23:26:23 -06:00
Eric Wasylishen e6f58ece0c Revert "light: phong shading: also weight by face area. this avoids cubes with rounded edges turning completely into blobs"
This reverts commit bbc95a1364.
2016-04-07 22:20:24 -06:00
Eric Wasylishen ecfa3c3e12 light: enable -parse_escape_sequences by default 2016-04-07 21:47:26 -06:00
Eric Wasylishen 96a8dc8c3d light: disable "Failed to calculate normal for vertex" warning because it was not really an error and causing spam
qbsp T-Juncs generate lots of colinear vertices I think?
2016-04-07 21:16:54 -06:00
Eric Wasylishen a6a89db530 light: refactor tracelist to be a list of modelinfo_t instead of dmodel_t 2016-04-05 23:25:36 -06:00
Eric Wasylishen bbc95a1364 light: phong shading: also weight by face area. this avoids cubes with rounded edges turning completely into blobs 2016-04-05 15:00:12 -06:00
Eric Wasylishen 33ee7e35f7 light: delete .lit file before starting 2016-04-03 18:25:30 -06:00
Eric Wasylishen e11e9d5c1f light: embree support 2016-03-30 14:58:21 -06:00
Eric Wasylishen d2f1eb2b2b light: support _phong and _phong_angle on bmodels for compatibility with other qbsp's. 2016-03-05 22:51:17 -07:00
Eric Wasylishen 41972a376a qbsp, light: Strip texinfo flags other than TEX_SPECIAL.
Write extended ones to a "mapname.texinfo" file.
Support "_dirt" and "_minlight" flags on func_detail/group.
2016-03-05 00:26:54 -07:00
Eric Wasylishen 72d7ce4231 light: handle degenerate triangles when smoothing normals 2016-03-03 12:38:03 -07:00
Eric Wasylishen 492d94c1fe light: new phong shading keys, "_phong_angle" and "_phong".
"_phong" "1" is a shortcut for "_phong_angle" "89".
"_phong_angle" sets the max angle in degrees between faces that will get smoothed.
2016-03-02 20:00:05 -07:00
Eric Wasylishen f641e93ca2 light: convert light.c to light.cc 2016-03-02 17:07:02 -07:00