Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Microsoft® Direct3D® Mobile supports both flat and Gouraud shading. The default is Gouraud shading. To control the current shading mode, your application specifies a member of the D3DMSHADEMODE enumerated type for the D3DMRS_SHADEMODE render state (see D3DMRENDERSTATETYPE).
The following code example shows the process of setting the shading state to flat shading mode.
// This code example assumes that d3dmDevice is a
// valid pointer to a IDirect3DMobileDevice interface.
// Set the shading state.
d3dmDevice->SetRenderState(D3DMRS_SHADEMODE, D3DMSHADE_FLAT);
See Also
Send Feedback on this topic to the authors