Share via


PrtEngine.SetPerVertexAlbedo(Array,Int32) Method (Microsoft.DirectX.Direct3D)

Sets an albedo value for each mesh vertex, overwriting previous albedo values.

Definition

Visual Basic Public Sub SetPerVertexAlbedo( _
    ByVal dataIn As ArrayLeave Site, _
    ByVal numberChannel As Integer _
)
C# public void SetPerVertexAlbedo(
    ArrayLeave Site dataIn,
    int numberChannel
);
C++ public:
void SetPerVertexAlbedo(
    ArrayLeave SitedataIn,
    int numberChannel
);
JScript public function SetPerVertexAlbedo(
    dataIn : ArrayLeave Site,
    numberChannel : int
);

Parameters

dataIn System.Array
An array of albedo data of the first sample.
numberChannel System.Int32
Number of color channels to set. Set to 1 to specify gray materials (R = G = B), or 3 to enable color bleeding effects.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.