From: havoc Date: Tue, 9 May 2006 15:18:50 +0000 (+0000) Subject: do q1bsp lighting checks starting with + 0.125 unit Z offset to improve chances of... X-Git-Tag: xonotic-v0.1.0preview~4014 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=39f72bf6c678452cde465e0cabe0a345c13a5df8;p=xonotic%2Fdarkplaces.git do q1bsp lighting checks starting with + 0.125 unit Z offset to improve chances of finding a lighting value rather than returning black when a model origin is almost stuck in the floor git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6352 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 8a1d39d6..8b4581fe 100644 --- a/model_brush.c +++ b/model_brush.c @@ -1117,7 +1117,7 @@ middle sample (the one which was requested) void Mod_Q1BSP_LightPoint(model_t *model, const vec3_t p, vec3_t ambientcolor, vec3_t diffusecolor, vec3_t diffusenormal) { - Mod_Q1BSP_LightPoint_RecursiveBSPNode(model, ambientcolor, diffusecolor, diffusenormal, model->brush.data_nodes + model->brushq1.hulls[0].firstclipnode, p[0], p[1], p[2], p[2] - 65536); + Mod_Q1BSP_LightPoint_RecursiveBSPNode(model, ambientcolor, diffusecolor, diffusenormal, model->brush.data_nodes + model->brushq1.hulls[0].firstclipnode, p[0], p[1], p[2] + 0.125, p[2] - 65536); VectorSet(diffusenormal, 0, 0, -1); }