Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_ColorMatteOperation.cpp
| Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | void ColorMatteOperation::executePixelSampled(float output[4], | ||||
| const float hue = this->m_settings->t1; | const float hue = this->m_settings->t1; | ||||
| const float sat = this->m_settings->t2; | const float sat = this->m_settings->t2; | ||||
| const float val = this->m_settings->t3; | const float val = this->m_settings->t3; | ||||
| float h_wrap; | float h_wrap; | ||||
| this->m_inputImageProgram->readSampled(inColor, x, y, sampler); | this->m_inputImageProgram->readSampled(inColor, x, y, sampler); | ||||
| this->m_inputKeyProgram->readSampled(inKey, x, y, sampler); | this->m_inputKeyProgram->readSampled(inKey, x, y, sampler); | ||||
| /* store matte(alpha) value in [0] to go with | /* Store matte(alpha) value in [0] to go with | ||||
| * COM_SetAlphaOperation and the Value output | * COM_SetAlphaMultiplyOperation and the Value output. | ||||
EAW: Same. | |||||
| */ | */ | ||||
| if ( | if ( | ||||
| /* do hue last because it needs to wrap, and does some more checks */ | /* do hue last because it needs to wrap, and does some more checks */ | ||||
| /* sat */ (fabsf(inColor[1] - inKey[1]) < sat) && | /* sat */ (fabsf(inColor[1] - inKey[1]) < sat) && | ||||
| /* val */ (fabsf(inColor[2] - inKey[2]) < val) && | /* val */ (fabsf(inColor[2] - inKey[2]) < val) && | ||||
| Show All 11 Lines | |||||
Same.