List of usage examples for com.badlogic.gdx.graphics.g3d.attributes BlendingAttribute BlendingAttribute
public BlendingAttribute()
From source file:com.mygdx.game.utilities.ModelFactory.java
License:Apache License
public static Model buildBillboardModel(Texture texture, float width, float height) { TextureRegion textureRegion = new TextureRegion(texture, texture.getWidth(), texture.getHeight()); Material material = new Material(); material.set(new TextureAttribute(TextureAttribute.Diffuse, textureRegion)); material.set(new ColorAttribute(ColorAttribute.AmbientLight, Color.WHITE)); material.set(new BlendingAttribute()); return ModelFactory.buildPlaneModel(width, height, material, 0, 0, 1, 1); }