I'm currently working on a two-dimensional Direct3D application, and I'm trying to figure out how to properly add a hue and alpha effect to different textures.
I had it working previously, but the way I was doing it was by:
- Locking the vertex buffer.
- Changing the diffuse colour on each of the vertices.
- Unlocking the vertex buffer.
I've heard and learned since then that this is a pretty heavy operation to do dozens of times per frame, so I want to know how else I could do it.
I was looking into diffuse lighting, but I'm not sure whether that allows me to add opacity to textures. If I add a diffuse light with 50% opacity to a texture, will the texture have 50% opacity?
Any guidance is appreciated, tutorials and sample code more so :),
Jengerer