Class SpotDiffuseEffect.Props
- Namespace
- PaintDotNet.Direct2D1.Effects
- Assembly
- PaintDotNet.Windows.Core.dll
public sealed class SpotDiffuseEffect.Props : DeviceEffectProperties
- Inheritance
-
SpotDiffuseEffect.Props
- Inherited Members
Constructors
Properties
- ClassID
Implemented by the derived class to specify the effect's class ID (CLSID) when registering and creating the effect and for binding to an IDeviceEffectProperties.
Note that this is different than the ID property accessor, which queries the IDeviceEffectProperties for the actual runtime effect class ID.
Overriding this property is only necessary in advanced scenarios, such as when wrapping an existing effect (e.g. built-in Direct2D effects), or when working with CustomEffects that have their own generic type arguments (e.g. PixelShaderEffect).
- Color
The color of the incoming light. The default value is { 1, 1, 1 } (white).
- DiffuseConstant
The ratio of diffuse reflection to amount of incoming light. This property must be between 0 and 10,000 and is unitless. The default value is 1.0.
- Focus
The focus of the spotlight. This value controls the exponent used for the spot falloff. The default value is 1.0.
- KernelUnitLength
The size of an element in the Sobel kernel used to generate the surface normal in the X and Y direction. This value is defined in (DIPs / Kernel Unit). The default value is { 1, 1 }.
- LightPosition
The light position of the point light source. The units are in device-independent pixels (DIPs) and are unbounded. The default value is { 0, 0, 0 }.
- LimitingConeAngle
The angle that restricts the region where the light is projected, in degrees. No light is projected outside this cone. The default value is 90.
- PointsAt
Where the spotlight is directed. The units are in DIPs and the values are unbounded. The default value is { 0, 0, 0 }.
- ScaleMode
The interpolation mode the effect uses to scale the image to the corresponding kernel unit length. The default value is SpotDiffuseScaleMode.Linear.
- SurfaceScale
The scale factor in the Z direction. The surface scale is unitless and must be between 0 and 10,000. The default value is 1.0.