Sun and Shadows
Various improvements to sun lighting have been introduced. The
first of these improvements is in the azimuth and zenith of the
sun's path throughout the day. Previously, the sun traveled along
a path parallel to the world, leading to poor shading of block
surfaces at nearly all times of the day. This directly led to poor
visuals at noon, due to the apparent lack of shadows present.
BetterRTX offsets the azimuth and zenith to avoid any
situations where the sun is directly overhead. This is achieved
through a matrix rotation of the
directionToSun
variable made available through the view buffer. The rotation is
optionally invertible as it is used to change the direction of the
sun's texture.