Description
Creates a new material to be used for the shell rendering as specified.
Syntax
Function RFDocument.AddMaterial(Name As String, pAmbient As RFColor, pDiffuse As RFColor, pSpecular As RFColor, shiness As Single, alpha As Single) As RFErrorCode
The AddMaterial syntax has these parts:
| Part | Description |
|---|---|
| Name | [IN] String Required. Name of the material to create. |
| pAmbient | [IN] RFColor Required. Ambient color. |
| pDiffuse | [IN] RFColor Required. Diffuse color. |
| pSpecular | [IN] RFColor Required. Specular color. |
| shiness | [IN] Single Required. Shiness ranging from 0 to 100. |
| alpha | [IN] Single Required. Transparency ranging from 0.0 to 1.0 |
Remarks