Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-239212

Vector3f#normalize treats small lengths the same as 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 22w43a
    • 1.17.1, 22w18a
    • None
    • Confirmed
    • (Unassigned)

      Vector3f#normalize treats small lengths the same as 0.

       

      Instead of using 1.0E-5D a value such as Float.MIN_NORMAL or checking if it's greater than 0 can be done.

       

      Using forge's render pipelines

       

      I haven't found a case where it's directly impacting Minecraft rendering pipeline though it does cause certain faces to turn completely black in forge due to the way lighting is calculated.

       

      I haven't fully checked though there may be problems with rendering small parts in mc but with different bugs.

       

      This is with the threshold removed, so it can be removed or possibly lowered.

        

            Unassigned Unassigned
            Sekwah Sekwah
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: