From 75aa4de016b7dc24829b56a6f791add54e616146 Mon Sep 17 00:00:00 2001 From: ToriGijzen Date: Mon, 13 May 2024 15:34:23 +0200 Subject: [PATCH] Added functions for picking shiny or matte for orbital and atom --- src/tcviewer/materials.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/tcviewer/materials.py b/src/tcviewer/materials.py index dfc2349..8438888 100644 --- a/src/tcviewer/materials.py +++ b/src/tcviewer/materials.py @@ -35,3 +35,21 @@ atom_matte.base_clearcoat = 0 atom_matte.thickness = 1 atom_matte.transmission = 0 + + +def orbital_material(material): + + if material == 'shiny': + return orbital_shiny + + if material == 'matte': + return orbital_matte + +def atom_material(material): + + if material == 'shiny': + return atom_shiny + + if material == 'matte': + return atom_matte +