LWJGL - OpenGL - Texture shading
Posted
by
Trixmix
on Game Development
See other posts from Game Development
or by Trixmix
Published on 2012-11-02T09:55:11Z
Indexed on
2012/11/02
11:19 UTC
Read the original article
Hit count: 335
I want to use LWJGL to create a shader that all it does is change the color of the given texture. For example I tell it to draw the letter A using a sprite sheet then I can tell the shader to draw the letter in a certain color. How would you do something like this without needed to create different colored letter sprite sheets?
Task for the shader: Simply change all pixels to a certain color in the texture. Input: Color , texture. Output: it draws onto the screen the new colored texture.
How do i accomplish such a thing?
© Game Development or respective owner