Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_lensdist.cc
| Show All 36 Lines | static void cmp_node_lensdist_declare(NodeDeclarationBuilder &b) | ||||
| b.add_input<decl::Float>(N_("Dispersion")).default_value(0.0f).min(0.0f).max(1.0f); | b.add_input<decl::Float>(N_("Dispersion")).default_value(0.0f).min(0.0f).max(1.0f); | ||||
| b.add_output<decl::Color>(N_("Image")); | b.add_output<decl::Color>(N_("Image")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void node_composit_init_lensdist(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_lensdist(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeLensDist *nld = MEM_cnew<NodeLensDist>(__func__); | NodeLensDist *nld = MEM_cnew<NodeLensDist>(MEM_AT); | ||||
| nld->jit = nld->proj = nld->fit = 0; | nld->jit = nld->proj = nld->fit = 0; | ||||
| node->storage = nld; | node->storage = nld; | ||||
| } | } | ||||
| static void node_composit_buts_lensdist(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_lensdist(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiLayout *col; | uiLayout *col; | ||||
| Show All 22 Lines | |||||