ColorSource Enumeration (Microsoft.DirectX.Direct3D)
Defines the location at which a color or color component must be accessed for lighting calculations.
Visual Basic Public Enum ColorSource C# public enum ColorSource C++ public enum class ColorSource JScript public enum ColorSource
Member Value Description Color2 2 Use the specular vertex color. Color1 1 Use the diffuse vertex color. Material 0 Use the color from the current material.
This enumeration is used to set the DiffuseMaterialSource, EmissiveMaterialSource, SpecularMaterialSource, and AmbientMaterialSource properties in the RenderStateManager class type.
Namespace Microsoft.DirectX.Direct3D Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll) Strong Name Microsoft.DirectX.Direct3D, Version=1.0.900.0, Culture=neutral, PublicKeyToken=d3231b57b74a1492
Show: