List of usage examples for com.badlogic.gdx.graphics.g3d.attributes CubemapAttribute CubemapAttribute
public CubemapAttribute(final long type, final Cubemap texture)
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; }