LuciadCPillar C# 2024.0.08
|
This class implements the Eye-dome lighting (EDL) effect, a non-photorealistic lighting model which helps accentuate the shapes of different objects to improve depth perception, by shading their outlines. More...
Public Member Functions | |
void | Dispose () |
void | Set (int window, double strength, System.Drawing.Color color) |
Sets multiple properties in one go. More... | |
Properties | |
System.Drawing.Color | Color [get, set] |
The color of the shade. More... | |
bool | IsEnabled [get, set] |
Whether the Eye-dome lighting effect is enabled. More... | |
double | Strength [get, set] |
The shading multiplication factor. More... | |
int | Window [get, set] |
The number of surrounding pixels taken into account by EDL model. More... | |
This class implements the Eye-dome lighting (EDL) effect, a non-photorealistic lighting model which helps accentuate the shapes of different objects to improve depth perception, by shading their outlines.
The lighting model applies a shade to each pixel, based on the depth difference between that pixel and its surrounding pixels. The EDL technique uses 3 properties:
Note that Eye-dome lighting is only applied in 3D views.
You cannot create an EyeDomeLightingEffect
. Instead, you can retrieve it from GraphicsEffects.EyeDomeLighting
.
|
inline |
|
inline |
|
getset |
The color of the shade.
Returns the color of the shade.
Sets the color of the shade. Note that the alpha component of the color is ignored so the color is fully opaque.
The default color is black.
|
getset |
Whether the Eye-dome lighting effect is enabled.
Returns whether the Eye-dome lighting effect is enabled.
Sets whether the Eye-dome lighting effect is enabled. The default is false.
|
getset |
The shading multiplication factor.
Returns the shading multiplication factor.
Sets the shading multiplication factor. A value between 0 and 1 softens the shade, a value higher than 1 hardens the shade.
The default strength is 1.
|
getset |
The number of surrounding pixels taken into account by EDL model.
Returns the number of surrounding pixels taken into account by EDL model.
Sets the number of surrounding pixels taken into account by EDL model. The default window is 2.