![]() |
![]() |
![]() |
PrtEngine.ExtractPerVertexAlbedo Method |
Language: |
Copies per-vertex albedo values from a mesh.
Visual Basic .NET Public Sub ExtractPerVertexAlbedo( _
ByVal mesh As Mesh, _
ByVal usage As DeclarationUsage, _
ByVal numberChannels As Integer _
)C# public void ExtractPerVertexAlbedo(
Mesh mesh,
DeclarationUsage usage,
int numberChannels
);Managed C++ public: void ExtractPerVertexAlbedo(
Mesh *mesh,
DeclarationUsage usage,
int numberChannels
);JScript .NET public function ExtractPerVertexAlbedo(
mesh : Mesh,
usage : DeclarationUsage,
numberChannels : int
);
mesh Microsoft.DirectX.Direct3D.Mesh. The Mesh object used to create the PrtEngine. usage Microsoft.DirectX.Direct3D.DeclarationUsage. Vertex DeclarationUsage descriptions to copy from the mesh. numberChannels System.Int32. Number of color channels to copy from the mesh. Set to 1 to specify gray materials (R = G = B), or 3 to enable color bleeding effects.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value. OutOfMemoryException Microsoft® Direct3D® could not allocate sufficient memory to complete the call.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center