Share via


RenderStateManager.AmbientMaterialSource Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the ambient color source for lighting calculations.

Definition

Visual Basic Public Property AmbientMaterialSource As ColorSource
C# public ColorSource AmbientMaterialSource { get; set; }
C++ public:
property ColorSource AmbientMaterialSource {
        ColorSource get();
        void set(ColorSource value);
}
JScript public function get AmbientMaterialSource() : ColorSource
public function set AmbientMaterialSource(ColorSource);

Property Value

Microsoft.DirectX.Direct3D.ColorSource
Value of the ColorSource enumeration that specifies the ambient color source value to set or retrieve.

This property is read/write. 

Remarks

Valid values are members of the ColorSource enumeration. The default value is ColorSource.Material.