d3drm: Load mesh color to mesh builder.

This commit is contained in:
Christian Costa 2012-06-04 19:30:49 +02:00 committed by Alexandre Julliard
parent ab8619e920
commit ab08e5938a
1 changed files with 2 additions and 0 deletions

View File

@ -1273,6 +1273,8 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3* iface, LPDIRECTXFILEDATA pData)
values = (float*)ptr; values = (float*)ptr;
IDirect3DRMMeshBuilder3_SetColorRGB(iface, values[0], values [1], values[2]); /* Alpha ignored */
IDirect3DRMMaterial2_SetAmbient(material, values[0], values [1], values[2]); /* Alpha ignored */ IDirect3DRMMaterial2_SetAmbient(material, values[0], values [1], values[2]); /* Alpha ignored */
IDirect3DRMMaterial2_SetPower(material, values[4]); IDirect3DRMMaterial2_SetPower(material, values[4]);
IDirect3DRMMaterial2_SetSpecular(material, values[5], values[6], values[7]); IDirect3DRMMaterial2_SetSpecular(material, values[5], values[6], values[7]);