]> git.lizzy.rs Git - minetest.git/commit
Use Sky class to obtain directional light source position for shadows (#12662)
authorx2048 <codeforsmile@gmail.com>
Wed, 17 Aug 2022 14:30:05 +0000 (16:30 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Aug 2022 14:30:05 +0000 (16:30 +0200)
commit8c29c4f620a45385ac4e906c1f50d1df7d1edba9
treeb0e3373136418f6159201cecc0fd7450fe29fc67
parent3f67215df9dbc16f3bfe1ffc5c2582a308532914
Use Sky class to obtain directional light source position for shadows (#12662)

* Also remove unused Sky::getSkyBodyOrbitTilt method

Fixes misalignment of sun position and shadow direction at high tilt values.
src/client/game.cpp
src/client/sky.cpp
src/client/sky.h