Rain and more

This commit is contained in:
Gabrieal Jimmy
2026-10-02 13:04:49 -05:00
parent 2c99305fb0
commit 16c03afd16
15 changed files with 374 additions and 46 deletions

View File

@@ -94,6 +94,7 @@ bool DemoScene::load(const std::string& assetDir) {
bridge_.model = models_.get("bridge");
if (!bridge_.model) return false;
bridge_.instances = {{{kBridgeCenter.x, 0.0f, kBridgeCenter.y}, 0.0f, glm::vec3(1.0f), 1.0f}};
bridge_.occluderFade = false; // low; the camera sees over it
bridge_.upload();
// Fires burn in the braziers on the bridge's entrance pillars.
for (const auto& [name, local] : bridge_.model->sockets)
@@ -104,6 +105,8 @@ bool DemoScene::load(const std::string& assetDir) {
for (ModelBatch& b : pines_) b.groundOcclusion = 1.0f;
for (ModelBatch& b : bushes_) b.groundOcclusion = 0.8f;
for (ModelBatch& b : rocks_) b.groundOcclusion = 0.7f;
for (ModelBatch& b : rocks_) b.occluderFade = false;
for (ModelBatch& b : bushes_) b.occluderFade = false;
tufts_.inReflections = false; // tiny, never visible in the pond
flowers_.inReflections = false;