I'm a game artist want to code a Colorlize filter.
But don't know how to start.
I want to use a gray texture and a color( texture or float4 color)
combine them to get a colorize image.
Just like we do in Photoshop layer blend mode "color".
that add color to a gray texture without darken or brighten it.
The opengl orange book lists a few filter codes for blending.
But there is no Colorlize filter.
Are there any tutorial or article talk about Colorlize filter?
Why I need it?
The benefit of colorize is save a lot of memory.
Our UI designer use a lot of textures for UI.
And most of UI are number or character bitmap can't not compress well by DXT5.
So they choose to use ARGB8888 uncompressed texture.
Most of them are the same pattern colorize by different colors.
I wish we can find a way to colorize the gray bitmap and save a few memory.
But don't know how to start.
I want to use a gray texture and a color( texture or float4 color)
combine them to get a colorize image.
Just like we do in Photoshop layer blend mode "color".
that add color to a gray texture without darken or brighten it.
The opengl orange book lists a few filter codes for blending.
But there is no Colorlize filter.
Are there any tutorial or article talk about Colorlize filter?
Why I need it?
The benefit of colorize is save a lot of memory.
Our UI designer use a lot of textures for UI.
And most of UI are number or character bitmap can't not compress well by DXT5.
So they choose to use ARGB8888 uncompressed texture.
Most of them are the same pattern colorize by different colors.
I wish we can find a way to colorize the gray bitmap and save a few memory.