Search in sources :

Example 1 with BillboardParticleBatch

use of com.badlogic.gdx.graphics.g3d.particles.batches.BillboardParticleBatch in project libgdx by libgdx.

the class ParticleControllerTest method create.

@Override
public void create() {
    super.create();
    emitters = new Array<ParticleController>();
    assets.load(DEFAULT_PARTICLE, Texture.class);
    assets.load(DEFAULT_SKIN, Skin.class);
    loading = true;
    environment = new Environment();
    environment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0f, 0f, 0.1f, 1f));
    environment.add(new DirectionalLight().set(1f, 1f, 1f, 0, -0.5f, -1));
    billboardParticleBatch = new BillboardParticleBatch();
    billboardParticleBatch.setCamera(cam);
    ui = new Stage();
    builder = new StringBuilder();
}
Also used : ParticleController(com.badlogic.gdx.graphics.g3d.particles.ParticleController) DirectionalLight(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight) Environment(com.badlogic.gdx.graphics.g3d.Environment) BillboardParticleBatch(com.badlogic.gdx.graphics.g3d.particles.batches.BillboardParticleBatch) Stage(com.badlogic.gdx.scenes.scene2d.Stage) ColorAttribute(com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute)

Aggregations

Environment (com.badlogic.gdx.graphics.g3d.Environment)1 ColorAttribute (com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute)1 DirectionalLight (com.badlogic.gdx.graphics.g3d.environment.DirectionalLight)1 ParticleController (com.badlogic.gdx.graphics.g3d.particles.ParticleController)1 BillboardParticleBatch (com.badlogic.gdx.graphics.g3d.particles.batches.BillboardParticleBatch)1 Stage (com.badlogic.gdx.scenes.scene2d.Stage)1