File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ MaterialLib::save_to_files(std::string const & prefix) const {
28
28
29
29
for (Material const & material : *this ) {
30
30
std::string diffuse_map_postfix = " _" + material.name + " _map_Kd.png" ;
31
- out << " newmtl " << material.name << std::endl
32
- << " Ka 1.000000 1.000000 1.000000" << std::endl
33
- << " Kd 1.000000 1.000000 1.000000" << std::endl
34
- << " Ks 0.000000 0.000000 0.000000" << std::endl
35
- << " Tr 0.000000" << std::endl
36
- << " illum 1" << std::endl
37
- << " Ns 1.000000" << std::endl
31
+ out << " newmtl " << material.name << ' \n '
32
+ << " Ka 1.000000 1.000000 1.000000" << ' \n '
33
+ << " Kd 1.000000 1.000000 1.000000" << ' \n '
34
+ << " Ks 0.000000 0.000000 0.000000" << ' \n '
35
+ << " Tr 0.000000" << ' \n ' // *Tr*ansparancy vs. *d*issolve: Tr = 1.0 - d
36
+ << " illum 1" << ' \n '
37
+ << " Ns 1.000000" << ' \n '
38
38
<< " map_Kd " << name + diffuse_map_postfix << std::endl;
39
39
}
40
40
out.close ();
You can’t perform that action at this time.
0 commit comments