diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-13 06:24:44 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-13 06:24:44 +0300 |
commit | 1a08a263884af2a9fba44107fcddbc70f336b02b (patch) | |
tree | de26b2d16294360c42ed76a740b4ddbc85a674e1 /source/blender/io | |
parent | c05ff54795af36e04d6e9a5450d65ea8633ca48e (diff) |
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/io')
-rw-r--r-- | source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh | 16 | ||||
-rw-r--r-- | source/blender/io/wavefront_obj/importer/obj_import_mtl.cc | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh b/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh index 0b94e4e43a3..32933a16c4d 100644 --- a/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh +++ b/source/blender/io/wavefront_obj/exporter/obj_export_mtl.hh @@ -56,16 +56,16 @@ struct MTLMaterial { std::string name; /* Always check for negative values while importing or exporting. Use defaults if * any value is negative. */ - float spec_exponent{-1.0f}; /* Ns */ - float3 ambient_color{-1.0f}; /* Ka */ - float3 color{-1.0f}; /* Kd */ - float3 spec_color{-1.0f}; /* Ks */ - float3 emission_color{-1.0f}; /* Ke */ - float ior{-1.0f}; /* Ni */ - float alpha{-1.0f}; /* d */ + float spec_exponent{-1.0f}; /* `Ns` */ + float3 ambient_color{-1.0f}; /* `Ka` */ + float3 color{-1.0f}; /* `Kd` */ + float3 spec_color{-1.0f}; /* `Ks` */ + float3 emission_color{-1.0f}; /* `Ke` */ + float ior{-1.0f}; /* `Ni` */ + float alpha{-1.0f}; /* `d` */ int illum_mode{-1}; MTLTexMap texture_maps[(int)MTLTexMapType::Count]; - /* Only used for Normal Map node: "map_Bump". */ + /* Only used for Normal Map node: `map_Bump`. */ float normal_strength{-1.0f}; }; diff --git a/source/blender/io/wavefront_obj/importer/obj_import_mtl.cc b/source/blender/io/wavefront_obj/importer/obj_import_mtl.cc index 76568b2ddb4..2819fe9efc8 100644 --- a/source/blender/io/wavefront_obj/importer/obj_import_mtl.cc +++ b/source/blender/io/wavefront_obj/importer/obj_import_mtl.cc @@ -257,7 +257,7 @@ static void set_bsdf_socket_values(bNode *bsdf, Material *mat, const MTLMaterial float clamped_ns = std::max(0.0f, std::min(1000.0f, mtl_mat.spec_exponent)); roughness = 1.0f - sqrt(clamped_ns / 1000.0f); } - /* Metallic: average of Ka components. */ + /* Metallic: average of `Ka` components. */ float metallic = (mtl_mat.ambient_color[0] + mtl_mat.ambient_color[1] + mtl_mat.ambient_color[2]) / 3; |