nodes: implemented mask node

This commit is contained in:
itsmattkc
2022-05-08 16:56:31 -07:00
parent f910117a58
commit 93e5351d33
10 changed files with 177 additions and 6 deletions
+8 -1
View File
@@ -89,7 +89,7 @@ void PolygonGenerator::Retranslate()
SetInputName(kColorInput, tr("Color"));
}
void PolygonGenerator::Value(const NodeValueRow &value, const NodeGlobals &globals, NodeValueTable *table) const
GenerateJob PolygonGenerator::GetGenerateJob(const NodeValueRow &value) const
{
GenerateJob job;
@@ -97,6 +97,13 @@ void PolygonGenerator::Value(const NodeValueRow &value, const NodeGlobals &globa
job.SetRequestedFormat(VideoParams::kFormatFloat32);
job.SetAlphaChannelRequired(GenerateJob::kAlphaForceOn);
return job;
}
void PolygonGenerator::Value(const NodeValueRow &value, const NodeGlobals &globals, NodeValueTable *table) const
{
GenerateJob job = GetGenerateJob(value);
PushMergableJob(value, QVariant::fromValue(job), table);
}