Class DistantDiffuse
Built in DistantDiffuse effect.
public class DistantDiffuse : Effect
- Inheritance
-
DistantDiffuse
- Inherited Members
Constructors
DistantDiffuse(DeviceContext)
Initializes a new instance of DistantDiffuse effect.
public DistantDiffuse(DeviceContext context)
Parameters
context
DeviceContext
Properties
Azimuth
The direction angle of the light source in the XY plane relative to the X-axis in the counter clock wise direction. The units are in degrees and must be between 0 and 360 degrees.
public float Azimuth { get; set; }
Property Value
Color
The color of the incoming light. This property is exposed as a
public RawVector3 Color { get; set; }
Property Value
- RawVector3
DiffuseConstant
The ratio of diffuse reflection to amount of incoming light. This property must be between 0 and 10,000 and is unitless.
public float DiffuseConstant { get; set; }
Property Value
Elevation
The direction angle of the light source in the YZ plane relative to the Y-axis in the counter clock wise direction. The units are in degrees and must be between 0 and 360 degrees.
public float Elevation { 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
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 DistantDiffuseScaleMode ScaleMode { 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; }