Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved texture filling #2697

Draft
wants to merge 13 commits into
base: dev
Choose a base branch
from

Commits on Aug 12, 2024

  1. Configuration menu
    Copy the full SHA
    777db1d View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

  1. Configuration menu
    Copy the full SHA
    bcdadc2 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. cleanup unused per-quad scanning, this is likely too hard to implemen…

    …t and not performant. Mods should instead use FRAPI or Forge APIs to assign multiple materials to the quads in their models such that each quad only renders as the most demanding material it requires.
    douira committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    aa93df1 View commit details
    Browse the repository at this point in the history
  2. move scanner into its own mixin,

    change injection of both mixins to not conflict by using WrapOperation,
    change the downgrade method to use passes, but then also add code to change the material bits' alpha cutoff parameter
    douira committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    c258eb1 View commit details
    Browse the repository at this point in the history
  3. use one tenth alpha test for determining transparency,

    remove ternary that gives different (but functionally identical) alpha cutoff parameters
    douira committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    7775259 View commit details
    Browse the repository at this point in the history
  4. fix issues with wrong sprite being used by using the center of the qu…

    …ad's UV coordinates and by sanity checking the quad against the sprite before downgrading
    douira committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    87a46c6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b51cdda View commit details
    Browse the repository at this point in the history
  6. Merge branch 'dev' into texture-scanning-quad-downgrade

    # Conflicts:
    #	common/src/main/java/net/caffeinemc/mods/sodium/client/render/chunk/compile/pipeline/BlockRenderer.java
    douira committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    fa3e037 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7d2f1dc View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. restructure material downgrade in bufferQuad into a separate method,

    address review comments in the sprite contents mixin
    douira committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    b1656b8 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. cleanup color unpacking

    douira committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    aff9e6a View commit details
    Browse the repository at this point in the history
  2. add comments

    douira committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    b1af71d View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. rewrite the transparent pixel filling algorithm to not just calculate…

    … the average color but instead fill in transparent pixels with the color of the closest non-transparent pixel
    douira committed Aug 21, 2024
    Configuration menu
    Copy the full SHA
    3e0d62b View commit details
    Browse the repository at this point in the history