diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-02-28 15:08:14 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-02-28 15:08:14 +0000 |
| commit | 7d0aef9f4e3536110959e5b6b6da85f8750ac91e (patch) | |
| tree | 84bb22f4ab4e29d6d67f18b77a679f5c62e6b213 /test | |
| parent | Add BillboardProgram to SceneShader (diff) | |
| download | ilt-7d0aef9f4e3536110959e5b6b6da85f8750ac91e.tar.bz2 ilt-7d0aef9f4e3536110959e5b6b6da85f8750ac91e.tar.xz ilt-7d0aef9f4e3536110959e5b6b6da85f8750ac91e.zip | |
Billboard foliage
Partition the instances by within/without the view frustum, then by
proximity to the view point and within/without the sunlight shadow
frustum. Use billboards for far away/out of view instances.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test-assetFactory.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-assetFactory.cpp b/test/test-assetFactory.cpp index 8dbe53d..fee1822 100644 --- a/test/test-assetFactory.cpp +++ b/test/test-assetFactory.cpp @@ -154,6 +154,7 @@ BOOST_AUTO_TEST_CASE(Tree, *boost::unit_test::timeout(5)) auto plant2 = std::make_shared<Plant>(tree011, Location {.pos = {3000, -4000, 0}, .rot = {0, 1, 0}}); auto plant3 = std::make_shared<Plant>(tree011, Location {.pos = {-2000, -4000, 0}, .rot = {0, 2, 0}}); auto plant4 = std::make_shared<Plant>(tree011, Location {.pos = {3000, 2000, 0}, .rot = {0, 3, 0}}); + auto plant5 = std::make_shared<Plant>(tree011, Location {.pos = {500'000, -500'000, -400'000}, .rot = {0, 3, 0}}); objects.emplace(tree011); render(6000); |
