summaryrefslogtreecommitdiff
path: root/game/scenary/illuminator.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-13 11:23:12 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-13 11:23:12 +0000
commite31f69ec26f5c128ae421eb418628ebcdfafb8f3 (patch)
tree4998cde56004f53a0218dc5f00d578f939ffea08 /game/scenary/illuminator.h
parentMerge common parts of light type vertices (diff)
downloadilt-e31f69ec26f5c128ae421eb418628ebcdfafb8f3.tar.bz2
ilt-e31f69ec26f5c128ae421eb418628ebcdfafb8f3.tar.xz
ilt-e31f69ec26f5c128ae421eb418628ebcdfafb8f3.zip
Only create VAOs for the light type(s) in use
Diffstat (limited to 'game/scenary/illuminator.h')
-rw-r--r--game/scenary/illuminator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/scenary/illuminator.h b/game/scenary/illuminator.h
index 1c493b2..893e5c7 100644
--- a/game/scenary/illuminator.h
+++ b/game/scenary/illuminator.h
@@ -11,7 +11,8 @@ class Texture;
class Illuminator : public Asset, public Renderable, public StdTypeDefs<Illuminator> {
Mesh::Ptr bodyMesh;
std::shared_ptr<Texture> texture;
- glVertexArray instanceVAO, instancesSpotLightVAO, instancesPointLightVAO;
+ glVertexArray instanceVAO;
+ std::optional<glVertexArray> instancesSpotLightVAO, instancesPointLightVAO;
public:
struct LightCommonVertex {