XORing textures...
Posted: Wed Jul 13, 2011 16:03
Hi,
I want to draw one texture on top of another so that the second texture is only drawn on the opaque parts of the first texture, and is tiled with a position and size.
The specific example is for instance something like a cup or other object being filled in a button... the partly transparent texture inside the cup moves up to simulate the cup being filled while the rest of the (transparent) background stays the same.
Is there a way to do this? Thanks.
I want to draw one texture on top of another so that the second texture is only drawn on the opaque parts of the first texture, and is tiled with a position and size.
The specific example is for instance something like a cup or other object being filled in a button... the partly transparent texture inside the cup moves up to simulate the cup being filled while the rest of the (transparent) background stays the same.
Is there a way to do this? Thanks.