SpotLight.LinearAttenuation Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The linear coefficient in the light's attenuation equation that determines how the light falls off with distance. Animatable.
public:
property float LinearAttenuation { float get(); void set(float value); };
float LinearAttenuation();
void LinearAttenuation(float value);
public float LinearAttenuation { get; set; }
var single = spotLight.linearAttenuation;
spotLight.linearAttenuation = single;
Public Property LinearAttenuation As Single
Property Value
float
The linear coefficient in the light's attenuation equation that determines how the light falls off with distance. Range is from 0 to infinity.
Examples
_spotLight.LinearAttenuation = .14F;
Remarks
The SpotLight.LinearAttenuation property is part of the attenuation equation which also contains SpotLight.ConstantAttenuation and SpotLight.QuadraticAttenuation:
![1/(Constant+Linear*(Distance/100)+Quadratic*(Distance/100)*(Distance/100))](microsoft.ui.composition/images/attenuationequation.png?view=windows-app-sdk-1.5)
Applies to
See also
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin