mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add fall.max_opacity, fall.opaque properties & update snow texture & weather mix test
This commit is contained in:
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue