Class DaeQuadBaker

java.lang.Object
com.hbm_m.client.loader.dae.DaeQuadBaker

public final class DaeQuadBaker extends Object
Bakes DAE scene meshes into block-atlas BakedQuads. Each triangle becomes a degenerate quad (the 4th vertex repeats the 3rd) and the V coordinate is flipped like the NEO baker (v = 1 - uv), so a baked model textures identically to the block entity renderer's pose-stack geometry. Shared by the item model loader and the transition seal BER.
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.minecraft.client.renderer.block.model.BakedQuad>
    bakeNodeQuads(DaeMesh mesh, org.joml.Matrix4f matrix, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite)
    Converts a DAE mesh (triangle soup) into block-atlas quads, transforming each vertex by the given matrix.
    static List<net.minecraft.client.renderer.block.model.BakedQuad>
    bakeScene(DaeModel model, DaeAnimation clip, float time, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite)
    Bakes every scene mesh at the given animation time into one flat quad list.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • bakeScene

      public static List<net.minecraft.client.renderer.block.model.BakedQuad> bakeScene(DaeModel model, DaeAnimation clip, float time, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite)
      Bakes every scene mesh at the given animation time into one flat quad list.
    • bakeNodeQuads

      public static List<net.minecraft.client.renderer.block.model.BakedQuad> bakeNodeQuads(DaeMesh mesh, org.joml.Matrix4f matrix, net.minecraft.client.renderer.texture.TextureAtlasSprite sprite)
      Converts a DAE mesh (triangle soup) into block-atlas quads, transforming each vertex by the given matrix. An identity matrix yields the local-space geometry.