Can you remember arcade games where the enemies turned solid white as you shot them to indicate that they were taking damage? Wasn't it great!
I can change the amount of red, green or blue using glColor which is cool:
glColor4f(1.f, 0.f, 0.f, 1.0f);//r,g,b,alpha
What I want to do now is render the sprite with all colour as white, while preserving the alpha channel so we get the silhouette in white...
Anyone out there know how to do this without shaders, as my code is using opengl 1.1 based on the Apple GLsprite example code.
I can change the amount of red, green or blue using glColor which is cool:
glColor4f(1.f, 0.f, 0.f, 1.0f);//r,g,b,alpha
What I want to do now is render the sprite with all colour as white, while preserving the alpha channel so we get the silhouette in white...
Anyone out there know how to do this without shaders, as my code is using opengl 1.1 based on the Apple GLsprite example code.
Last edited: