AMereBagatelle / fabricskyboxes

Custom skyboxes mod for Fabric
MIT License
76 stars 22 forks source link

[Experimental] Improve alpha calculation & Alpha blend fog colors #92

Closed FlashyReese closed 12 months ago

FlashyReese commented 1 year ago

Refactor Summary

This PR includes several modifications aimed at enhancing the alpha calculation and separating the time fading and conditional fading. The main objective of this PR is to build upon the improvements made in #77, ensuring robustness and facilitating the debugging process for resource pack creators working on their skyboxes. This PR also improves fog color transition to use alpha blending rather than weighted additive blending.

Breaking changes

The Skybox#isActiveLater method has been removed as it is no longer required.

Motivation

The motivation for these changes stems from the desire to enhance the accuracy of alpha calculation.