Skip to main content
added 198 characters in body
Source Link
Yuu
  • 21
  • 4

I found the solution in a badlogic forum.

modelInstance.materials.get(0).set(FloatAttribute.createAlphaTest(0.95f));This:

modelBuilder.part("minecraft:loading_model", mesh, 4, new Material(TextureAttribute.createDiffuse(atlas), blendingAttribute, FloatAttribute.createAlphaTest(0.95f)));

Or this:

modelInstance.materials.get(0).set(FloatAttribute.createAlphaTest(0.95f));

enter image description here

I found the solution in a badlogic forum.

modelInstance.materials.get(0).set(FloatAttribute.createAlphaTest(0.95f));

enter image description here

I found the solution in a badlogic forum.

This:

modelBuilder.part("minecraft:loading_model", mesh, 4, new Material(TextureAttribute.createDiffuse(atlas), blendingAttribute, FloatAttribute.createAlphaTest(0.95f)));

Or this:

modelInstance.materials.get(0).set(FloatAttribute.createAlphaTest(0.95f));

enter image description here

Source Link
Yuu
  • 21
  • 4

I found the solution in a badlogic forum.

modelInstance.materials.get(0).set(FloatAttribute.createAlphaTest(0.95f));

enter image description here