Blame toonz/sources/stdfx/ino_blend_subtract.cpp
|
Toshihiro Shimizu |
890ddd |
//------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
#include "tfxparam.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "stdfx.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include "ino_common.h"
|
|
shun-iwasawa |
e00258 |
#include "igs_color_blend.h"
|
|
shun-iwasawa |
e00258 |
|
|
Toshihiro Shimizu |
890ddd |
/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */
|
|
Shinya Kitaoka |
d1f6c4 |
class ino_blend_subtract final : public TBlendForeBackRasterFx {
|
|
Shinya Kitaoka |
120a6e |
FX_PLUGIN_DECLARATION(ino_blend_subtract)
|
|
Toshihiro Shimizu |
890ddd |
public:
|
|
Shinya Kitaoka |
120a6e |
ino_blend_subtract()
|
|
shun-iwasawa |
e00258 |
: TBlendForeBackRasterFx(true, true) {} // with alpha_rendering switch
|
|
Shinya Kitaoka |
120a6e |
~ino_blend_subtract() {}
|
|
shun-iwasawa |
e00258 |
void brendKernel(double& dnr, double& dng, double& dnb, double& dna,
|
|
shun-iwasawa |
e00258 |
const double upr, double upg, double upb, double upa,
|
|
shun-iwasawa |
e00258 |
const double up_opacity,
|
|
shun-iwasawa |
e00258 |
const bool alpha_rendering_sw = true) override {
|
|
shun-iwasawa |
e00258 |
igs::color::subtract(dnr, dng, dnb, dna, upr, upg, upb, upa, up_opacity,
|
|
shun-iwasawa |
e00258 |
alpha_rendering_sw);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
FX_PLUGIN_IDENTIFIER(ino_blend_subtract, "inoSubtractFx");
|