37 bNode *shader_output_;
42 const float node_size_{300.f};
63 bNode *add_node_to_tree(
const int node_type);
68 std::pair<float, float> set_node_locations(
const int pos_x);
74 void link_sockets(
bNode *from_node,
78 const int from_node_pos_x);
82 void set_bsdf_socket_values(
Material *mat);
87 void add_image_textures(
Main *bmain,
Material *mat,
bool relative_paths);
Read Guarded memory(de)allocation.
bNodeTree * get_nodetree()
ShaderNodetreeWrap(Main *bmain, const MTLMaterial &mtl_mat, Material *mat, bool relative_paths)
std::unique_ptr< bNodeTree, UniqueNodetreeDeleter > unique_nodetree_ptr
void operator()(bNodeTree *node)