Example usage for com.badlogic.gdx.graphics.g3d.attributes BlendingAttribute BlendingAttribute

List of usage examples for com.badlogic.gdx.graphics.g3d.attributes BlendingAttribute BlendingAttribute

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g3d.attributes BlendingAttribute BlendingAttribute.

Prototype

public BlendingAttribute() 

Source Link

Usage

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);
}