Commit ab08e593 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3drm: Load mesh color to mesh builder.

parent ab8619e9
......@@ -1273,6 +1273,8 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3* iface, LPDIRECTXFILEDATA pData)
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_SetPower(material, values[4]);
IDirect3DRMMaterial2_SetSpecular(material, values[5], values[6], values[7]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment