Source imageProcessingEnabled on/off with storage of previous state and

saving in mix file.
This commit is contained in:
brunoherbelin
2020-07-30 08:45:01 +02:00
parent fd0979887a
commit dbdcaab6b2
5 changed files with 39 additions and 5 deletions

View File

@@ -15,6 +15,25 @@ ImageProcessingShader::ImageProcessingShader()
reset();
}
ImageProcessingShader::ImageProcessingShader(const ImageProcessingShader &S)
{
program_ = &imageProcessingShadingProgram;
reset();
brightness = S.brightness;
contrast = S.contrast;
saturation = S.saturation;
hueshift = S.hueshift;
threshold = S.threshold;
lumakey = S.lumakey;
nbColors = S.nbColors;
invert = S.invert;
filterid = S.filterid;
gamma = S.gamma;
levels = S.levels;
chromakey = S.chromakey;
chromadelta = S.chromadelta;
}
void ImageProcessingShader::use()
{
Shader::use();