mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
[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:
parent
dccd6989b2
commit
0246e55983
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue