Package com.hbm_m.client.loader.dae
Class DaeQuadBaker
java.lang.Object
com.hbm_m.client.loader.dae.DaeQuadBaker
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 TypeMethodDescriptionstatic 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.
-
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.
-