materialspec¶
- marxs.visualization.threejs.materialspec(display, material)[source] [edit on github]¶
Construct a string that can be pasted into a javascript template to describe a three.js material.
- Parameters:
- displaydict
Dictionary of properties. All properties that have a same name as the property of the relevant material in javascript are included, all others are ignored.
- materialstring
Name of the material in three.js (Only materials used currently in marxs are supported).
- Returns:
- specstring
String that can be pasted into javasript files.