[scene] Set the color for new entities

Black doesn't show up too well on black. Really, this isn't the best
fix, but it will do until I can rework entities to use a component
system.
This commit is contained in:
Bill Currie 2022-05-04 18:00:35 +09:00
parent 2493ca71c7
commit eaaa0f597f

View file

@ -35,6 +35,7 @@
# include <strings.h> # include <strings.h>
#endif #endif
#include "QF/mathlib.h"
#include "QF/progs.h" // for PR_RESMAP #include "QF/progs.h" // for PR_RESMAP
#include "QF/sys.h" #include "QF/sys.h"
@ -84,6 +85,8 @@ Scene_CreateEntity (scene_t *scene)
hierarchy_t *h = ent->transform->hierarchy; hierarchy_t *h = ent->transform->hierarchy;
h->entity.a[ent->transform->index] = ent; h->entity.a[ent->transform->index] = ent;
QuatSet (1, 1, 1, 1, ent->renderer.colormod);
return ent; return ent;
} }