如何使用 slimdx 进行渐变过渡?
我正在不同图像之间进行灰度转换,并且有一个想法,我可以通过进行一些混合来做到这一点,但是任何人都可以帮助我如何实际实现它。
谢谢
I am doing gray scale transitions between different images and have an idea that i can do it by doing some blending but can any body please help me how to actually implement it.
Thanks
这是与语言无关的此处
似乎可以在像素着色器中完成,但速度问题需要预先计算混合比率。
This has been done language-agnostically here
It seems it can be done in a pixel shader, but speed concerns require precomputing blending ratios.