RFDocument.AddMaterial



Your Ad Here

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 [INString Required. Name of the material to create.
pAmbient [INRFColor Required. Ambient color.
pDiffuse [INRFColor Required. Diffuse color.
pSpecular [INRFColor Required. Specular color.
shiness [INSingle Required. Shiness ranging from 0 to 100.
alpha [INSingle Required. Transparency ranging from 0.0 to 1.0

Remarks

Return to Rapidform Index


Your Ad Here