Class SpotSpecular
Built in SpotSpecular effect.
public class SpotSpecular : Effect
- Inheritance
-
SpotSpecular
- Inherited Members
Constructors
SpotSpecular(DeviceContext)
Initializes a new instance of SpotSpecular effect.
public SpotSpecular(DeviceContext context)
Parameters
context
DeviceContext
Properties
Color
The color of the incoming light. This property is exposed as a
public RawVector3 Color { get; set; }
Property Value
- RawVector3
Focus
The focus of the spot light. This property is unitless and is defined between 0 and 200.
public float Focus { get; set; }
Property Value
KernelUnitLength
The size of an element in the Sobel kernel used to generate the surface normal in the X and Y direction.
This property maps to the dx and dy values in the Sobel gradient.
This property is a
public RawVector2 KernelUnitLength { get; set; }
Property Value
- RawVector2
LightPosition
The light position of the point light source. The property is a D2D1_VECTOR_3F defined as (x, y, z). The units are in device-independent pixels (DIPs) and the values are unitless and unbounded.
public RawVector3 LightPosition { get; set; }
Property Value
- RawVector3
LimitingConeAngle
The cone angle that restricts the region where the light is projected. No light is projected outside the cone. The limiting cone angle is the angle between the spot light axis (the axis between the LightPosition and PointsAt properties) and the spot light cone. This property is defined in degrees and must be between 0 to 90 degrees.
public float LimitingConeAngle { get; set; }
Property Value
PointsAt
Where the spot light is focused. The property is exposed as a
public RawVector3 PointsAt { get; set; }
Property Value
- RawVector3
ScaleMode
The interpolation mode the effect uses to scale the image to the corresponding kernel unit length. There are six scale modes that range in quality and speed. If you don't select a mode, the effect uses the interpolation mode of the device context. See Scale modes for more info.
public SpotSpecularScaleMode ScaleMode { get; set; }
Property Value
SpecularConstant
The ratio of specular reflection to the incoming light. The value is unitless and must be between 0 and 10,000.
public float SpecularConstant { get; set; }
Property Value
SpecularExponent
The exponent for the specular term in the Phong lighting equation. A larger value corresponds to a more reflective surface. The value is unitless and must be between 1.0 and 128.
public float SpecularExponent { get; set; }
Property Value
SurfaceScale
The scale factor in the Z direction. The value is unitless and must be between 0 and 10,000.
public float SurfaceScale { get; set; }