Example usage for com.badlogic.gdx.graphics Cubemap Cubemap

List of usage examples for com.badlogic.gdx.graphics Cubemap Cubemap

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics Cubemap Cubemap.

Prototype

public Cubemap(int width, int height, int depth, Format format) 

Source Link

Document

Construct a Cubemap with Pixmap s for each side of the specified size.

Usage

From source file:com.microbasic.sm.tools.FrameBufferCubeMap.java

License:Apache License

/** Override this method in a derived class to set up the backing texture as you like. */
protected void setupTexture() {
    //Texture olorTexture = new Texture(width, height, format);
    colorTexture = new Cubemap(width, height, width, format);
    colorTexture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
    colorTexture.setWrap(TextureWrap.ClampToEdge, TextureWrap.ClampToEdge);
}