]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
do q1bsp lighting checks starting with + 0.125 unit Z offset to improve chances of...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 9 May 2006 15:18:50 +0000 (15:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 9 May 2006 15:18:50 +0000 (15:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6352 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 8a1d39d62cbf95f6f05d9914aea40d83da61a40f..8b4581fe1a99bd83464f56a0fc869a66abd0df3a 100644 (file)
@@ -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);
 }