Skip to content

Commit

Permalink
Merge pull request #7 from TheoChem-VU/6-add-get_by_name-function-to-…
Browse files Browse the repository at this point in the history
…materials

Added functions for picking shiny or matte for orbital and atom
  • Loading branch information
ToriGijzen committed May 13, 2024
2 parents 8cf245a + 75aa4de commit a6e1259
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/tcviewer/materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a6e1259

Please sign in to comment.