git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5217
d7cf8633-e32d-0410-b094-
e92efae38249
glosstexture = r_texture_black;
specularscale = 0;
}
- if ((ambientscale + diffusescale) * (VectorLength2(lightcolorbase) + VectorLength2(lightcolorpants) + VectorLength2(lightcolorshirt)) + specularscale * VectorLength2(lightcolorbase) <= 0.001)
- return;
if (!basetexture)
basetexture = r_texture_white;
if (!bumptexture)
lightcolorpants = vec3_origin;
if (!lightcolorshirt)
lightcolorshirt = vec3_origin;
+ if ((ambientscale + diffusescale) * (VectorLength2(lightcolorbase) + VectorLength2(lightcolorpants) + VectorLength2(lightcolorshirt)) + specularscale * VectorLength2(lightcolorbase) <= 0.001)
+ return;
if (visiblelighting)
{
int passes = 0;