LibGDX - change the brightness of a texture

Hello folks,
I am trying to achieve a lighting effect, and for that i need to change the brightness of my textures / blocks.

However, everything works except the last part, how can i change the brightness of a texture in libGDX? and it must be performance friendly.

I searched this with my friend google, but he couldn’t find anything useful… or maybe i just a bad searcher…

Any ideas folks?
Thanks in advance and see you later programmers.

It’s impossible? no answers and google cant find answers…

It’s not impossible.
I myself have not needed that effect but here are 2 links after searching “opengl texture brightness”


Note that LibGDX uses GLES so the second link might be more relevant.

Ohhh i searched - " LibGDX texture brightness" :slight_smile:
thanks for the links

In my game I just use


batch.setColor(brightness,brightness,brightness,alpha);
//render texture and/or overlay
batch.setColor(1f,1f,1f,1f);//reset the color
//

I have a tile based lighting system though. If you want better lighting, I would use shaders

See here:

Thanks, i have block based map, and i used GLSL but it bugs my textures… nobody could find the problem so i decided to do light with libGDX.