Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/compositor/nodes/COM_AntiAliasingNode.cc')
-rw-r--r--source/blender/compositor/nodes/COM_AntiAliasingNode.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/compositor/nodes/COM_AntiAliasingNode.cc b/source/blender/compositor/nodes/COM_AntiAliasingNode.cc
index 8cbb3994939..b11c57041d9 100644
--- a/source/blender/compositor/nodes/COM_AntiAliasingNode.cc
+++ b/source/blender/compositor/nodes/COM_AntiAliasingNode.cc
@@ -23,37 +23,37 @@
namespace blender::compositor {
-void AntiAliasingNode::convertToOperations(NodeConverter &converter,
- const CompositorContext & /*context*/) const
+void AntiAliasingNode::convert_to_operations(NodeConverter &converter,
+ const CompositorContext & /*context*/) const
{
- bNode *node = this->getbNode();
+ bNode *node = this->get_bnode();
NodeAntiAliasingData *data = (NodeAntiAliasingData *)node->storage;
/* Edge Detection (First Pass) */
SMAAEdgeDetectionOperation *operation1 = nullptr;
operation1 = new SMAAEdgeDetectionOperation();
- operation1->setThreshold(data->threshold);
- operation1->setLocalContrastAdaptationFactor(data->contrast_limit);
- converter.addOperation(operation1);
+ operation1->set_threshold(data->threshold);
+ operation1->set_local_contrast_adaptation_factor(data->contrast_limit);
+ converter.add_operation(operation1);
- converter.mapInputSocket(getInputSocket(0), operation1->getInputSocket(0));
+ converter.map_input_socket(get_input_socket(0), operation1->get_input_socket(0));
/* Blending Weight Calculation Pixel Shader (Second Pass) */
SMAABlendingWeightCalculationOperation *operation2 =
new SMAABlendingWeightCalculationOperation();
- operation2->setCornerRounding(data->corner_rounding);
- converter.addOperation(operation2);
+ operation2->set_corner_rounding(data->corner_rounding);
+ converter.add_operation(operation2);
- converter.addLink(operation1->getOutputSocket(), operation2->getInputSocket(0));
+ converter.add_link(operation1->get_output_socket(), operation2->get_input_socket(0));
/* Neighborhood Blending Pixel Shader (Third Pass) */
SMAANeighborhoodBlendingOperation *operation3 = new SMAANeighborhoodBlendingOperation();
- converter.addOperation(operation3);
+ converter.add_operation(operation3);
- converter.mapInputSocket(getInputSocket(0), operation3->getInputSocket(0));
- converter.addLink(operation2->getOutputSocket(), operation3->getInputSocket(1));
- converter.mapOutputSocket(getOutputSocket(0), operation3->getOutputSocket());
+ converter.map_input_socket(get_input_socket(0), operation3->get_input_socket(0));
+ converter.add_link(operation2->get_output_socket(), operation3->get_input_socket(1));
+ converter.map_output_socket(get_output_socket(0), operation3->get_output_socket());
}
} // namespace blender::compositor