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

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

Introduction

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

Prototype

public CubemapAttribute(final long type, final Cubemap texture) 

Source Link

Usage

From source file:com.mbrlabs.mundus.commons.skybox.Skybox.java

License:Apache License

private Model createModel() {
    ModelBuilder modelBuilder = new ModelBuilder();
    Model model = modelBuilder.createBox(1, 1, 1,
            new Material(new CubemapAttribute(CubemapAttribute.EnvironmentMap, cubemap)),
            VertexAttributes.Usage.Position);
    return model;
}