RenderStateManager.DiffuseMaterialSource Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets the diffuse color source for lighting calculations.

Definition

Visual Basic .NET Public Property DiffuseMaterialSource As ColorSource
C# public ColorSource DiffuseMaterialSource { get; set; }
Managed C++ public: __property ColorSource get_DiffuseMaterialSource();
public: __property void set_DiffuseMaterialSource(ColorSource);
JScript .NET public function get DiffuseMaterialSource() : ColorSource
public function set DiffuseMaterialSource(ColorSource);

Property Value

Microsoft.DirectX.Direct3D.ColorSource . A ColorSource object that specifies the diffuse color source value to set or retrieve.

This property is read/write. 

Remarks

Valid values are members of the ColorSource enumerated type. The default value is ColorSource.Color1. The value for this render state is used only if RenderStateManager.ColorVertex is set to true.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.