Share via


PointLightBase.Range 속성

정의

조명이 효과를 미치지 않는 거리를 가져오거나 설정합니다.

public:
 property double Range { double get(); void set(double value); };
public double Range { get; set; }
member this.Range : double with get, set
Public Property Range As Double

속성 값

Double

조명이 효과를 미치지 않는 거리를 지정하는 Double입니다.

예제

다음 예제에서는 코드에서이 속성을 설정합니다.

public MyLights()
{
    for (int i = 0; i < nbrDirLights; i++)
    {
        _dirLight[i] = new DirectionalLight();
        _dirLight[i].Color = _dirLightColor[i];
        _dirLight[i].Direction = _dirVector[i];
    }

    _ptLight.Position = new Point3D(-3, -7, 10);
    _ptLight.Color = System.Windows.Media.Brushes.White.Color;
    _ptLight.Range = 15.0;
    _ptLight.ConstantAttenuation = 3.0;
}
Public Sub New()
    For i As Integer = 0 To nbrDirLights - 1
        _dirLight(i) = New DirectionalLight()
        _dirLight(i).Color = _dirLightColor(i)
        _dirLight(i).Direction = _dirVector(i)
    Next i

    _ptLight.Position = New Point3D(-3, -7, 10)
    _ptLight.Color = System.Windows.Media.Brushes.White.Color
    _ptLight.Range = 15.0
    _ptLight.ConstantAttenuation = 3.0
End Sub

설명

종속성 속성 정보

식별자 필드 RangeProperty
메타 데이터 속성 설정 true 없음

적용 대상