private Skybox skybox;
public void create(){
...
skybox = new Skybox(
camera, // game camera
Color.CYAN, // top color
Color.YELLOW, // bottom color
500 // scale
);
...
}
public void update(float deltaTime){
...
skybox.update();
...
}
public void render(ModelBatch batch){
...
skybox.render(batch); // skybox.render(batch, envirounment);
...
}
they can be used at runtime.
setColors(
Color.BLACK, // top color
Color.BROWN // bottom color
);
lerpColors(
Color.FOREST, // top color
Color.GOLD // bottom color
);