31 .compositor_expects_single_value();
35 .description(
"The angle of the bokeh")
36 .compositor_expects_single_value();
42 .description(
"Specifies how round the bokeh is, maximum roundness produces a circular bokeh")
43 .compositor_expects_single_value();
49 .description(
"Specifies the size of the catadioptric iris, zero means no iris")
50 .compositor_expects_single_value();
57 "Specifies the amount of color shifting. 1 means maximum shifting towards blue while -1 "
58 "means maximum shifting toward red")
59 .compositor_expects_single_value();
79 this->get_roundness(),
80 this->get_catadioptric_size(),
81 this->get_color_shift());
110 this->
get_input(
"Catadioptric Size").get_single_value_default(0.0f), 0.0f, 1.0f);
134 ntype.
ui_description =
"Generate image with bokeh shape for use with the Bokeh Blur filter node";
137 ntype.
declare = file_ns::cmp_node_bokehimage_declare;
#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(GPUTexture *texture)
BokehKernelContainer bokeh_kernels
Domain compute_domain() override
float get_catadioptric_size()
NodeOperation(Context &context, DNode node)
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