Blender V4.3
obj_export_mtl.cc File Reference
#include "BKE_image.hh"
#include "BKE_node.hh"
#include "BKE_node_runtime.hh"
#include "BLI_map.hh"
#include "BLI_math_vector.h"
#include "BLI_math_vector.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "obj_export_mesh.hh"
#include "obj_export_mtl.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::io
 
namespace  blender::io::obj
 

Functions

 blender::io::obj::BLI_STATIC_ASSERT (ARRAY_SIZE(tex_map_type_to_socket_id)==int(MTLTexMapType::Count), "array size mismatch")
 
static void blender::io::obj::copy_property_from_node (const eNodeSocketDatatype property_type, const bNode *node, const char *identifier, MutableSpan< float > r_property)
 
static void blender::io::obj::linked_sockets_to_dest_id (const bNode *dest_node, const bNodeTree &node_tree, const char *dest_socket_id, Vector< const bNodeSocket * > &r_linked_sockets)
 
static const bNodeblender::io::obj::get_node_of_type (Span< const bNodeSocket * > sockets_list, const int node_type)
 
static std::string blender::io::obj::get_image_filepath (const bNode *tex_node)
 
static const bNodeblender::io::obj::find_bsdf_node (const bNodeTree *nodetree)
 
static void blender::io::obj::store_bsdf_properties (const bNode *bsdf_node, const Material *material, MTLMaterial &r_mtl_mat)
 
static void blender::io::obj::store_image_textures (const bNode *bsdf_node, const bNodeTree *node_tree, const Material *material, MTLMaterial &r_mtl_mat)
 
MTLMaterial blender::io::obj::mtlmaterial_for_material (const Material *material)
 

Variables

const char * blender::io::obj::tex_map_type_to_socket_id []