Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/nodes/COM_GlareNode.cpp
| Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | void GlareNode::convertToOperations(NodeConverter &converter, | ||||
| } | } | ||||
| BLI_assert(glareoperation); | BLI_assert(glareoperation); | ||||
| glareoperation->setGlareSettings(glare); | glareoperation->setGlareSettings(glare); | ||||
| GlareThresholdOperation *thresholdOperation = new GlareThresholdOperation(); | GlareThresholdOperation *thresholdOperation = new GlareThresholdOperation(); | ||||
| thresholdOperation->setGlareSettings(glare); | thresholdOperation->setGlareSettings(glare); | ||||
| SetValueOperation *mixvalueoperation = new SetValueOperation(); | SetValueOperation *mixvalueoperation = new SetValueOperation(); | ||||
| mixvalueoperation->setValue(0.5f + glare->mix * 0.5f); | mixvalueoperation->setValue(glare->mix); | ||||
| MixGlareOperation *mixoperation = new MixGlareOperation(); | MixGlareOperation *mixoperation = new MixGlareOperation(); | ||||
| mixoperation->setResolutionInputSocketIndex(1); | mixoperation->setResolutionInputSocketIndex(1); | ||||
| mixoperation->getInputSocket(2)->setResizeMode(COM_SC_FIT); | mixoperation->getInputSocket(2)->setResizeMode(COM_SC_FIT); | ||||
| converter.addOperation(glareoperation); | converter.addOperation(glareoperation); | ||||
| converter.addOperation(thresholdOperation); | converter.addOperation(thresholdOperation); | ||||
| converter.addOperation(mixvalueoperation); | converter.addOperation(mixvalueoperation); | ||||
| Show All 10 Lines | |||||