Integrate & Improve FlexiCubes

Also updated the default .mtl file settings
This commit is contained in:
MrForExample
2024-04-12 16:49:42 +02:00
parent 086567f3e9
commit 85a083d87c
665 changed files with 1209 additions and 408 deletions
+2 -2
View File
@@ -832,10 +832,10 @@ class Mesh:
fp.write(f"newmtl defaultMat \n")
fp.write(f"Ka 1 1 1 \n")
fp.write(f"Kd 1 1 1 \n")
fp.write(f"Ks 0 0 0 \n")
fp.write(f"Ks 1 1 1 \n")
#fp.write(f"Tr 1 \n") # will cause the mesh materials in three.js completely transparent
fp.write(f"illum 1 \n")
fp.write(f"Ns 0 \n")
fp.write(f"Ns 10 \n")
if self.albedo is not None:
fp.write(f"map_Kd {os.path.basename(albedo_path)} \n")
if self.metallicRoughness is not None: