This topic has not yet been rated - Rate this topic

RenderStateManager.SpecularEnable Property

Retrieves or sets a render state that enables specular highlights.

Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)

public bool SpecularEnable { get; set; }
/** @property */
public boolean get_SpecularEnable ()

/** @property */
public void set_SpecularEnable (boolean value)

public function get SpecularEnable () : boolean

public function set SpecularEnable (value : boolean)

Not applicable.

Property Value

true if specular highlights is enabled; otherwise, false. The default is false.

Specular highlights are calculated as though every vertex in the object being lit is at the object's origin. This gives the expected results as long as the object is modeled around the origin and the distance from the light to the object is relatively large. In other cases, the results are undefined.

When this state is set to true, the specular color is added to the base color after the texture cascade but before alpha blending.

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Compact Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.