Substance module

Classes related to material properties

Substance.MATERIALS = {'chalk': <Substance.Material object>, 'cork': <Substance.Material object>, 'maple': <Substance.Material object>, 'silver': <Substance.Material object>}

Add new materials to this list to have them appear as options in application selection menus.

class Substance.Material(density=1, color='#bf40b3', name='unnamed')[source]

Bases: object

A material is a broad reference to a material type

Parameters
  • density (number) – The density, in kg / m^3

  • color (color string) – The color the material should render as

  • name (str) – The name of the material