DisplayMaterial Constructor (Color, Color, Color, Color, Double, Double) |
Constructs a material with custom properties.
Namespace:
Rhino.Display
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax public DisplayMaterial(
Color diffuse,
Color specular,
Color ambient,
Color emission,
double shine,
double transparency
)
Public Sub New (
diffuse As Color,
specular As Color,
ambient As Color,
emission As Color,
shine As Double,
transparency As Double
)
Parameters
- diffuse
- Type: System.DrawingColor
Diffuse color of material. The alpha component of the Diffuse color is ignored. - specular
- Type: System.DrawingColor
Specular color of material. The alpha component of the Specular color is ignored. - ambient
- Type: System.DrawingColor
Ambient color of material. The alpha component of the Ambient color is ignored. - emission
- Type: System.DrawingColor
Emission color of material. The alpha component of the Emission color is ignored. - shine
- Type: SystemDouble
Shine (highlight size) of material. - transparency
- Type: SystemDouble
Transparency of material (0.0 = opaque, 1.0 = transparent)
See Also