Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/composite/nodes/node_composite_sunbeams.cc
| Show All 32 Lines | static void cmp_node_sunbeams_declare(NodeDeclarationBuilder &b) | ||||
| b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); | b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f}); | ||||
| b.add_output<decl::Color>(N_("Image")); | b.add_output<decl::Color>(N_("Image")); | ||||
| } | } | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| static void init(bNodeTree *UNUSED(ntree), bNode *node) | static void init(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| { | { | ||||
| NodeSunBeams *data = MEM_cnew<NodeSunBeams>(__func__); | NodeSunBeams *data = MEM_cnew<NodeSunBeams>(MEM_AT); | ||||
| data->source[0] = 0.5f; | data->source[0] = 0.5f; | ||||
| data->source[1] = 0.5f; | data->source[1] = 0.5f; | ||||
| node->storage = data; | node->storage = data; | ||||
| } | } | ||||
| static void node_composit_buts_sunbeams(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void node_composit_buts_sunbeams(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| Show All 22 Lines | |||||