From 39f72bf6c678452cde465e0cabe0a345c13a5df8 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 9 May 2006 15:18:50 +0000 Subject: [PATCH] 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 --- model_brush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2