ID3DXPRTEngine::SetPerVertexAlbedo
Sets an albedo value for each mesh
vertex, overwriting previous albedo values.
HRESULT SetPerVertexAlbedo(
CONST VOID * pDataIn,
UINT NumChannels,
UINT Stride
);
Parameters
- pDataIn
- [in] Pointer to FLOAT albedo data of the first sample.
- NumChannels
- [in] Number of color channels to set. Set to 1 to specify gray materials (R = G = B), or 3 to enable color bleeding effects.
- Stride
- [in] Stride in bytes needed to get to next sample's albedo value. See Width vs. Pitch.
Return Values
If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, E_OUTOFMEMORY.
Requirements
Header: Declared in D3dx9mesh.h.