diff options
author | Campbell Barton <ideasman42@gmail.com> | 2022-01-06 05:54:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2022-01-06 05:54:52 +0300 |
commit | 499fec6f79a26c9c9d2d61b90bda2e4cec424f81 (patch) | |
tree | 828271035f950a504f11a8bdb3454516835d0800 /source/blender/io/wavefront_obj/exporter/obj_export_mtl.cc | |
parent | aa363ec2ae9382c052f024284dcdb77ac495c177 (diff) |
Cleanup: spelling in comments
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.cc | 10 |
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); } |