26 "The number of flaps in the bokeh");
30 .description(
"The angle of the bokeh");
37 "Specifies how round the bokeh is, maximum roundness produces a circular bokeh");
43 .description(
"Specifies the size of the catadioptric iris, zero means no iris");
50 "Specifies the amount of color shifting. 1 means maximum shifting towards blue while -1 "
51 "means maximum shifting toward red");
53 b.add_output<
decl::Color>(
"Image").structure_type(StructureType::Dynamic);
71 this->get_roundness(),
72 this->get_catadioptric_size(),
73 this->get_color_shift());
102 this->
get_input(
"Catadioptric Size").get_single_value_default(0.0f), 0.0f, 1.0f);
126 ntype.
ui_description =
"Generate image with bokeh shape for use with the Bokeh Blur filter node";
129 ntype.
declare = file_ns::cmp_node_bokehimage_declare;
constexpr int NODE_DEFAULT_MAX_WIDTH
#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, DNode node)
Result & get_result(StringRef identifier)
Context & context() const
Result & get_input(StringRef identifier) const
T get_single_value_default(const T &default_value) const
void wrap_external(blender::gpu::Texture *texture)
BokehKernelContainer bokeh_kernels
Domain compute_domain() override
float get_catadioptric_size()
NodeOperation(Context &context, DNode node)
void node_type_size(bNodeType &ntype, int width, int minwidth, int maxwidth)
void node_register_type(bNodeType &ntype)
T clamp(const T &a, const T &min, const T &max)
static void cmp_node_bokehimage_declare(NodeDeclarationBuilder &b)
static NodeOperation * get_compositor_operation(Context &context, DNode node)
VecBase< int32_t, 2 > int2
static void register_node_type_cmp_bokehimage()
void cmp_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
const char * enum_name_legacy
NodeDeclareFunction declare