materialdict¶
- marxs.visualization.threejs.materialdict(display, material)[source]¶
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¶
- specdict
material specification