diff --git a/include/light/bounce.hh b/include/light/bounce.hh index 49d84be8..938d76c3 100644 --- a/include/light/bounce.hh +++ b/include/light/bounce.hh @@ -30,6 +30,7 @@ #include typedef struct { + std::vector poly; glm::vec3 pos; std::map colorByStyle; glm::vec3 componentwiseMaxColor; // cached maximum color in the colorByStyle, used for culling so we don't need to loop through colorByStyle diff --git a/light/bounce.cc b/light/bounce.cc index ae2104c2..29d26f44 100644 --- a/light/bounce.cc +++ b/light/bounce.cc @@ -230,6 +230,7 @@ AddBounceLight(const vec3_t pos, const std::map &colorByStyle, c Q_assert(area > 0); bouncelight_t l; + l.poly = GLM_FacePoints(bsp, face); l.pos = vec3_t_to_glm(pos); l.colorByStyle = colorByStyle;