18 "For meshes, outputs normals without custom normal attributes taken into account");
28 const bool legacy_corner_normals = bool(
params.node().custom1);
29 if (
params.output_is_required(
"Normal")) {
32 Field<float3>{std::make_shared<bke::NormalFieldInput>(legacy_corner_normals,
false)});
34 if (
params.output_is_required(
"True Normal")) {
35 params.set_output(
"True Normal",
36 Field<float3>{std::make_shared<bke::NormalFieldInput>(
false,
true)});
47 "Retrieve a unit length vector indicating the direction pointing away from the geometry at "
#define GEO_NODE_INPUT_NORMAL
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void node_register_type(bNodeType &ntype)
void geo_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
std::string ui_description
void(* draw_buttons_ex)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)