Skip to content

Commit

Permalink
Rollup of fixes and improvements for cloud rendering
Browse files Browse the repository at this point in the history
Some changes were made to cloud rendering in newer versions
that needed to be replicated in Sodium.

- The alpha cutoff for clouds was changed to (a < 10).
- Texture loading can now gracefully fail, and it is
expected that rendering is skipped when this happens.
- The movement/positioning of clouds was slightly changed.
- The render pass system now needs to be told about
render target usages (fixes CaffeineMC#2883).

This commit also improves mesh building time by around 35% on
a fast processor (AMD Ryzen HX AI 370) through various
micro-optimizations.
  • Loading branch information
jellysquid3 authored and ThatMG393 committed Dec 15, 2024
1 parent 3bad1b2 commit 5ea7c73
Show file tree
Hide file tree
Showing 2 changed files with 465 additions and 288 deletions.
Loading

0 comments on commit 5ea7c73

Please sign in to comment.