}
}));
}
private Texture createTexture() {
final Texture3D tex = new Texture3D();
tex.setMinificationFilter(MinificationFilter.BilinearNoMipMaps);
tex.setTextureKey(TextureKey.getRTTKey(MinificationFilter.BilinearNoMipMaps));
final Image img = new Image();
img.setWidth(32);
img.setHeight(32);
img.setDepth(32);
final List<ByteBuffer> data = Lists.newArrayList();
for (int i = 0; i < 32; i++) {
final Image colorImage = GeneratedImageFactory
.createSolidColorImage(ColorRGBA.randomColor(null), false, 32);
data.add(colorImage.getData(0));
if (i == 0) {
img.setDataFormat(colorImage.getDataFormat());
img.setDataType(colorImage.getDataType());
}
}
img.setData(data);
tex.setImage(img);
return tex;
}