Share via


RenderStateManager.DiffuseMaterialSource Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the diffuse color source for lighting calculations.

Definition

Visual Basic Public Property DiffuseMaterialSource As ColorSource
C# public ColorSource DiffuseMaterialSource { get; set; }
C++ public:
property ColorSource DiffuseMaterialSource {
        ColorSource get();
        void set(ColorSource value);
}
JScript 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.