Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_LuminanceMatteOperation.cpp
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | void LuminanceMatteOperation::executePixelSampled(float output[4], | ||||
| } | } | ||||
| else if (luminance < low) { | else if (luminance < low) { | ||||
| alpha = 0.0f; | alpha = 0.0f; | ||||
| } | } | ||||
| else { /*blend */ | else { /*blend */ | ||||
| alpha = (luminance - low) / (high - low); | alpha = (luminance - low) / (high - low); | ||||
| } | } | ||||
| /* 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. | |||||
| */ | */ | ||||
| /* don't make something that was more transparent less transparent */ | /* don't make something that was more transparent less transparent */ | ||||
| output[0] = min_ff(alpha, inColor[3]); | output[0] = min_ff(alpha, inColor[3]); | ||||
| } | } | ||||
Same.