From eaaa0f597f091b488d560688d12461ce61c521c7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 4 May 2022 18:00:35 +0900 Subject: [PATCH] [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. --- libs/scene/scene.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/scene/scene.c b/libs/scene/scene.c index e08fb718c..13742f2a9 100644 --- a/libs/scene/scene.c +++ b/libs/scene/scene.c @@ -35,6 +35,7 @@ # include #endif +#include "QF/mathlib.h" #include "QF/progs.h" // for PR_RESMAP #include "QF/sys.h" @@ -84,6 +85,8 @@ Scene_CreateEntity (scene_t *scene) hierarchy_t *h = ent->transform->hierarchy; h->entity.a[ent->transform->index] = ent; + QuatSet (1, 1, 1, 1, ent->renderer.colormod); + return ent; }