Changeset View
Changeset View
Standalone View
Standalone View
source/blender/compositor/nodes/COM_GlareNode.cc
| Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | void GlareNode::convertToOperations(NodeConverter &converter, | ||||
| GlareThresholdOperation *thresholdOperation = new GlareThresholdOperation(); | GlareThresholdOperation *thresholdOperation = new GlareThresholdOperation(); | ||||
| thresholdOperation->setGlareSettings(glare); | thresholdOperation->setGlareSettings(glare); | ||||
| SetValueOperation *mixvalueoperation = new SetValueOperation(); | SetValueOperation *mixvalueoperation = new SetValueOperation(); | ||||
| mixvalueoperation->setValue(glare->mix); | mixvalueoperation->setValue(glare->mix); | ||||
| MixGlareOperation *mixoperation = new MixGlareOperation(); | MixGlareOperation *mixoperation = new MixGlareOperation(); | ||||
| mixoperation->setResolutionInputSocketIndex(1); | mixoperation->set_canvas_input_index(1); | ||||
| mixoperation->getInputSocket(2)->setResizeMode(ResizeMode::FitAny); | mixoperation->getInputSocket(2)->setResizeMode(ResizeMode::FitAny); | ||||
| converter.addOperation(glareoperation); | converter.addOperation(glareoperation); | ||||
| converter.addOperation(thresholdOperation); | converter.addOperation(thresholdOperation); | ||||
| converter.addOperation(mixvalueoperation); | converter.addOperation(mixvalueoperation); | ||||
| converter.addOperation(mixoperation); | converter.addOperation(mixoperation); | ||||
| converter.mapInputSocket(getInputSocket(0), thresholdOperation->getInputSocket(0)); | converter.mapInputSocket(getInputSocket(0), thresholdOperation->getInputSocket(0)); | ||||
| Show All 9 Lines | |||||