[vulkan] Support colored lights

Now my dizzy map looks like it used to (more or less, possibly too dark,
but I suspect I used some command-line settings to qflight).
This commit is contained in:
Bill Currie 2021-03-20 16:50:37 +09:00
parent dccd6989b2
commit 0246e55983

View file

@ -408,6 +408,10 @@ parse_light (qfv_light_t *light, const plitem_t *entity,
}
VectorSet (1, 1, 1, light->color);
if ((str = PL_String (PL_ObjectForKey (entity, "color")))
|| (str = PL_String (PL_ObjectForKey (entity, "_color")))) {
sscanf (str, "%f %f %f", VectorExpandAddr (light->color));
}
}
void