Commit 167ae6d5 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Lower color saturation in material files for better 3D visualization

parent 453fc5ee
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -964,10 +964,10 @@ def write_obj(scatterer, geometry, max_rad):
    out_model_path = Path(str(geometry['out_file']) + ".obj")
    out_material_path = Path(str(geometry['out_file']) + ".mtl")
    color_strings = [
        "1.0 1.0 1.0\n", # white
        "1.0 0.0 0.0\n", # red
        "0.0 0.0 1.0\n", # blue
        "0.0 1.0 0.0\n", # green
        "0.5 0.5 0.5\n", # white
        "0.3 0.0 0.0\n", # red
        "0.0 0.0 0.3\n", # blue
        "0.0 0.3 0.0\n", # green
    ]
    color_names = [
        "white", "red", "blue", "green"