[英]LibGDX - change texture brightness
There is a way to set the texture brightness with libGDX? 有没有办法使用libGDX设置纹理亮度?
I prefer not to use GLSL for that, There is a way to do this with just libGDX? 我不想为此使用GLSL,有没有办法只使用libGDX?
I couldn't find something like that - 我找不到这样的东西-
Texture tex = new Texture("tex.png");
tex.brightness = "0.5"; // Couldn't find something like that
If someone can help i will be glad. 如果有人可以帮我,我会很高兴。 Thanks.
谢谢。
There is nothing like that. 没有那样的事。
But you can change the color of the SpriteBatch you use to draw it: 但是您可以更改用于绘制它的SpriteBatch的颜色:
batch.setColor(0.5F, 0.5F, 0.5F, 1F); //It will be darker
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.