25 .description(
"The angle of the bokeh");
32 "Specifies how round the bokeh is, maximum roundness produces a circular bokeh");
38 .description(
"Specifies the size of the catadioptric iris, zero means no iris");
45 "Specifies the amount of color shifting. 1 means maximum shifting towards blue while -1 "
46 "means maximum shifting toward red");
48 b.add_output<
decl::Color>(
"Image"_ustr).structure_type(StructureType::Dynamic);
71 this->get_roundness(),
72 this->get_catadioptric_size(),
73 this->get_color_shift());
76 output.share_data(bokeh_kernel);
102 this->
get_input(
"Catadioptric Size").get_single_value_default<float>(), 0.0f, 1.0f);
108 this->
get_input(
"Color Shift").get_single_value_default<float>(), -1.0f, 1.0f);
123 ntype.
ui_description =
"Generate image with bokeh shape for use with the Bokeh Blur filter node";
#define CMP_NODE_BOKEHIMAGE
#define NOD_REGISTER_NODE(REGISTER_FUNC)
Result & get(Context &context, int2 size, int sides, float rotation, float roundness, float catadioptric, float lens_shift)
StaticCacheManager & cache_manager()
NodeOperation(Context &context, const bNode &node)
Result & get_result(StringRef identifier)
Context & context() const
Result & get_input(StringRef identifier) const
T get_single_value_default() const
BokehKernelContainer bokeh_kernels
NodeOperation(Context &context, const bNode &node)
Domain compute_domain() override
float get_catadioptric_size()
void node_register_type(bNodeType &ntype)
T clamp(const T &a, const T &min, const T &max)
static void node_register()
static NodeOperation * get_compositor_operation(Context &context, const bNode &node)
static void node_init(bNodeTree *, bNode *node)
static void node_declare(NodeDeclarationBuilder &b)
void cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
static constexpr int _160
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
void(*) initfunc(bNodeTree *ntree, bNode *node)
const char * enum_name_legacy
NodeDeclareFunction declare