Rain and more
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user