Fast Monochromatic Textures

Started by
2 comments, last by Turold 15 years, 9 months ago
I have a truecolor texture in DX9.0c. How can I make it appear in shades of grey without using pixel shaders?
Advertisement
There's the D3DTOP_DOTPRODUCT3 texture operation using the fixed-function pipeline. Pass in the constants for calculating luminosity using D3DTSS_CONSTANT, set up the other input to be the texture, and it will calculate the luminosity for each pixel, which is greyscale. Add more stages for different effects!
Just a note; this not likely to be faster than using a pixel shader (unless of course you dont have pixel shaders :)
THX! I will check it out soon.

I'm making a casual puzzle game so using any shaders is prohibited. :)

This topic is closed to new replies.

Advertisement