Fast Monochromatic Textures
I have a truecolor texture in DX9.0c. How can I make it appear in shades of grey without using pixel shaders?
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 :)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement