Surface的表面光照的计算
Light
01 Syntax
Microsoft.VisualBasic.Imaging.Drawing3D.Light
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| ComputeLighting | 1 | Lambert diffuse + ambient shading. |
| Lighting | 1 | 对模型之中的某一个表面进行光照处理 |
| Shade | 1 | Shade baseColor toward lightColor by factor (in [0,1]). |
| ScaleLightColor | 1 | 按亮度系数缩放灯光颜色(降低亮度可削弱被照亮面的发白)。 |
| LightDirFromAngles | 1 | 由仰角/方位角(度)构造指向光源的单位向量。 |
03 Members
Lambert diffuse + ambient shading. Computes the face normal from the first three vertices, orients it toward the viewer, and blends the base color toward the light color by the lit amount. Degenerate faces (zero normal) keep the base color.
Parameters
对模型之中的某一个表面进行光照处理
Parameters
Shade(
Color, Color, Double)Shade baseColor toward lightColor by factor (in [0,1]).
ScaleLightColor(
Color, Double)按亮度系数缩放灯光颜色(降低亮度可削弱被照亮面的发白)。
LightDirFromAngles(
Int32, Int32)由仰角/方位角(度)构造指向光源的单位向量。