Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/operations/COM_ChannelMatteOperation.cpp
| Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | void ChannelMatteOperation::executePixelSampled(float output[4], | ||||
| else if (alpha < limit_min) { | else if (alpha < limit_min) { | ||||
| alpha = 0.0f; | alpha = 0.0f; | ||||
| } | } | ||||
| else { /*blend */ | else { /*blend */ | ||||
| alpha = (alpha - limit_min) / limit_range; | alpha = (alpha - limit_min) / limit_range; | ||||
| } | } | ||||
| /* 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: [Comments should always start with a capital letter and end with a full stop.](https://wiki. | |||||
| */ | */ | ||||
| /* don't make something that was more transparent less transparent */ | /* don't make something that was more transparent less transparent */ | ||||
| output[0] = min(alpha, inColor[3]); | output[0] = min(alpha, inColor[3]); | ||||
| } | } | ||||
Comments should always start with a capital letter and end with a full stop.