Description:
Constructs a new material from a Rhino.DocObjects.Material .
Syntax:
Parameters:
- material
- Type: DocObjects.Material
- (optional)The material to create the material from.
- doc
- Type: RhinoDoc
- The document to associate this material with.
Returns:
Type: RenderMaterial
A new material - either a "Custom" material or a "Physically Based" material depending on the return value of material.IsPhysicallyBased.
Available since:
7.1