Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/io/wavefront_obj/exporter/obj_export_mtl.cc')
-rw-r--r--source/blender/io/wavefront_obj/exporter/obj_export_mtl.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/io/wavefront_obj/exporter/obj_export_mtl.cc b/source/blender/io/wavefront_obj/exporter/obj_export_mtl.cc
index b60f8976177..b99d41e0c72 100644
--- a/source/blender/io/wavefront_obj/exporter/obj_export_mtl.cc
+++ b/source/blender/io/wavefront_obj/exporter/obj_export_mtl.cc
@@ -192,7 +192,7 @@ static void store_bsdf_properties(const nodes::NodeRef *bsdf_node,
if (bnode) {
copy_property_from_node(SOCK_FLOAT, bnode, "Roughness", {&roughness, 1});
}
- /* Emperical approximation. Importer should use the inverse of this method. */
+ /* Empirical approximation. Importer should use the inverse of this method. */
float spec_exponent = (1.0f - roughness) * 30;
spec_exponent *= spec_exponent;
@@ -230,7 +230,7 @@ static void store_bsdf_properties(const nodes::NodeRef *bsdf_node,
}
mul_v3_fl(emission_col, emission_strength);
- /* See https://wikipedia.org/wiki/Wavefront_.obj_file for all possible values of illum. */
+ /* See https://wikipedia.org/wiki/Wavefront_.obj_file for all possible values of `illum`. */
/* Highlight on. */
int illum = 2;
if (specular == 0.0f) {
@@ -268,7 +268,7 @@ static void store_bsdf_properties(const nodes::NodeRef *bsdf_node,
}
/**
- * Store image texture options and filepaths in r_mtl_mat.
+ * Store image texture options and file-paths in `r_mtl_mat`.
*/
static void store_image_textures(const nodes::NodeRef *bsdf_node,
const nodes::NodeTreeRef *node_tree,
@@ -292,7 +292,7 @@ static void store_image_textures(const nodes::NodeRef *bsdf_node,
const bNode *normal_map_node{nullptr};
if (texture_map.key == eMTLSyntaxElement::map_Bump) {
- /* Find sockets linked to destination "Normal" socket in p-bsdf node. */
+ /* Find sockets linked to destination "Normal" socket in P-BSDF node. */
linked_sockets_to_dest_id(bnode, *node_tree, "Normal", linked_sockets);
/* Among the linked sockets, find Normal Map shader node. */
normal_map_node = get_node_of_type(linked_sockets, SH_NODE_NORMAL_MAP);
@@ -308,7 +308,7 @@ static void store_image_textures(const nodes::NodeRef *bsdf_node,
}
}
else {
- /* Find sockets linked to the destination socket of interest, in p-bsdf node. */
+ /* Find sockets linked to the destination socket of interest, in P-BSDF node. */
linked_sockets_to_dest_id(
bnode, *node_tree, texture_map.value.dest_socket_id, linked_sockets);
}