Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_vecBlur.cc
| Show All 40 Lines | b.add_input<decl::Vector>(N_("Speed")) | ||||
| .subtype(PROP_VELOCITY); | .subtype(PROP_VELOCITY); | ||||
| 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_vecblur(bNodeTree *UNUSED(ntree), bNode *node) | static void node_composit_init_vecblur(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeBlurData *nbd = MEM_cnew<NodeBlurData>(__func__); | NodeBlurData *nbd = MEM_cnew<NodeBlurData>(MEM_AT); | ||||
| node->storage = nbd; | node->storage = nbd; | ||||
| nbd->samples = 32; | nbd->samples = 32; | ||||
| nbd->fac = 1.0f; | nbd->fac = 1.0f; | ||||
| } | } | ||||
| static void node_composit_buts_vecblur(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_vecblur(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiLayout *col; | uiLayout *col; | ||||
| Show All 27 Lines | |||||