Blob Blame Raw
//------------------------------------------------------------
#include "tfxparam.h"
#include "stdfx.h"

#include "ino_common.h"
#include "igs_color_blend.h"

/* tnzbase --> Source Files --> tfx --> binaryFx.cppを参照 */
class ino_blend_subtract final : public TBlendForeBackRasterFx {
  FX_PLUGIN_DECLARATION(ino_blend_subtract)
public:
  ino_blend_subtract()
      : TBlendForeBackRasterFx(true, true) {}  // with alpha_rendering switch
  ~ino_blend_subtract() {}
  void brendKernel(double& dnr, double& dng, double& dnb, double& dna,
                   const double upr, double upg, double upb, double upa,
                   const double up_opacity,
                   const bool alpha_rendering_sw = true,
                   const bool do_clamp           = true) override {
    igs::color::subtract(dnr, dng, dnb, dna, upr, upg, upb, upa, up_opacity,
                         alpha_rendering_sw, do_clamp);
  }
};
FX_PLUGIN_IDENTIFIER(ino_blend_subtract, "inoSubtractFx");