Click or drag to resize

RenderMaterialFromMaterial Method

Constructs a new material from a Material.

Namespace:  Rhino.Render
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 7.1
Syntax
public static RenderMaterial FromMaterial(
	Material material,
	RhinoDoc doc
)

Parameters

material
Type: Rhino.DocObjectsMaterial
(optional)The material to create the material from.
doc
Type: RhinoRhinoDoc
The document to associate this material with.

Return Value

Type: RenderMaterial
A new material - either a "Custom" material or a "Physically Based" material depending on the return value of material.IsPhysicallyBased.
See Also