I am sure there is an easy way of doing this (at least, I hope there is): How can I change the brightness of the skybox to simulate day and night cycles without the need of loading new textures?
The skybox is created as follows:
private void addSkybox()
[java] {
String dir = “Textures/Sky/skybox/”;
Texture north =assetManager.loadTexture(dir + “1.jpg”);
Texture south = assetManager.loadTexture(dir + “3.jpg”);
Texture east = assetManager.loadTexture(dir + “2.jpg”);
Texture west = assetManager.loadTexture(dir + “4.jpg”);
Texture up = assetManager.loadTexture(dir + “6.jpg”);
Texture down = assetManager.loadTexture(dir + “5.jpg”);
I have tried to change the textures I am loading, but as far as I can see, the ‘Texture.setBlendColor(ColorRGBA color)’ is not applicable anymore. What is the best approach to darken and lighten the skybox?
@husky said:
I am sure there is an easy way of doing this (at least, I hope there is): How can I change the brightness of the skybox to simulate day and night cycles without the need of loading new textures?
The skybox is created as follows:
private void addSkybox()
[java] {
String dir = “Textures/Sky/skybox/”;
Texture north =assetManager.loadTexture(dir + “1.jpg”);
Texture south = assetManager.loadTexture(dir + “3.jpg”);
Texture east = assetManager.loadTexture(dir + “2.jpg”);
Texture west = assetManager.loadTexture(dir + “4.jpg”);
Texture up = assetManager.loadTexture(dir + “6.jpg”);
Texture down = assetManager.loadTexture(dir + “5.jpg”);
I have tried to change the textures I am loading, but as far as I can see, the ‘Texture.setBlendColor(ColorRGBA color)’ is not applicable anymore. What is the best approach to darken and lighten the skybox?