Description
Retrieves properties of the specified material.
Syntax
Function RFDocument.GetMaterialInfo(materialIndex As Long, pName As String, pAmbient As RFColor, pDiffuse As RFColor, pSpecular As RFColor, pShiness As Single, pAlpha As Single) As RFErrorCode
The GetMaterialInfo syntax has these parts:
| Part | Description |
|---|---|
| materialIndex | [IN] Long Required. Index of the material. |
| pName | [OUT] String Required. Name of the material. |
| pAmbient | [OUT] RFColor Required. Ambient color of the material. |
| pDiffuse | [OUT] RFColor Required. Diffuse color of the material. |
| pSpecular | [OUT] RFColor Required. Specular color of the material. |
| pShiness | [OUT] Single Required. Shiness value of the material ranging from 0 to 100. |
| pAlpha | [OUT] Single Required. Transparency value of the material ranging from 0 to 1. |