add fall.max_opacity, fall.opaque properties & update snow texture & weather mix test

This commit is contained in:
MihailRis
2025-02-26 06:24:05 +03:00
parent 18773b3230
commit 589518fb25
9 changed files with 57 additions and 21 deletions
@@ -127,7 +127,11 @@ void PrecipitationRenderer::render(
{{0, 0, 1}, {1, 0, 0}},
};
bool cutBack = glm::dot(camera.up, glm::vec3(0, 1, 0)) > 0.35f * camera.getFov();
for (const auto& face : faces) {
if (glm::dot(camera.right, face.right) < 0.0f && cutBack) {
continue;
}
for (int lx = -radius; lx <= radius; lx++) {
for (int lz = depth; lz > 0; lz--) {
// Position calculations