diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-02 20:20:29 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-02 20:20:29 +0000 |
| commit | cfdcfbb4aaa1e7c1cad36b9ac3ded6cc02fb1f14 (patch) | |
| tree | 303f283fd0a8cedee310b82c79d116d503d713a8 /game/scenary/foliage.h | |
| parent | Wrap up some low level texture operations in glTexture class (diff) | |
| download | ilt-cfdcfbb4aaa1e7c1cad36b9ac3ded6cc02fb1f14.tar.bz2 ilt-cfdcfbb4aaa1e7c1cad36b9ac3ded6cc02fb1f14.tar.xz ilt-cfdcfbb4aaa1e7c1cad36b9ac3ded6cc02fb1f14.zip | |
Calculate an appropriate billboardSize and useMeshClipDist
Removes hard coded arbitrary numbers for 256px sq and 140m.
Diffstat (limited to 'game/scenary/foliage.h')
| -rw-r--r-- | game/scenary/foliage.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/game/scenary/foliage.h b/game/scenary/foliage.h index 61bdb5b..c457404 100644 --- a/game/scenary/foliage.h +++ b/game/scenary/foliage.h @@ -1,9 +1,7 @@ #pragma once #include "assetFactory/asset.h" -#include "gfx/gl/billboardPainter.h" #include "gfx/gl/instanceVertices.h" -#include "gfx/gl/shadowStenciller.h" #include "gfx/models/texture.h" #include "gfx/renderable.h" @@ -32,13 +30,15 @@ public: void shadows(const ShadowMapper &, const Frustum &) const override; void updateStencil(const ShadowStenciller &) const override; void updateBillboard(const BillboardPainter &) const override; - glTexture shadowStencil = ShadowStenciller::createStencilTexture(256, 256); - glTextures<3> billboard = BillboardPainter::createBillBoardTextures(256, 256); protected: friend Persistence::SelectionPtrBase<std::shared_ptr<Foliage>>; bool persist(Persistence::PersistenceStore & store) override; void postLoad() override; + GLsizei billboardSize {}; + RelativeDistance useMeshClipDist {}; + glTexture shadowStencil; + glTextures<3> billboard; private: InstanceVertices<Foliage::LocationVertex>::PartitionResult instancePartitions; |
