PointLight.QuadraticAttenuation 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 quadratic portion of the attenuation equation that determines how the light falls off with distance.
public:
property float QuadraticAttenuation { float get(); void set(float value); };
float QuadraticAttenuation();
void QuadraticAttenuation(float value);
public float QuadraticAttenuation { get; set; }
var single = pointLight.quadraticAttenuation;
pointLight.quadraticAttenuation = single;
Public Property QuadraticAttenuation As Single
Property Value
float
The quadratic portion of the attenuation equation that determines how the light falls off with distance. Controls light intensity falloff based on distance squared. Range is from 0 to infinity.
Examples
_pointLight.QuadraticAttenuation = .0007F;
Remarks
The PointLight.QuadraticAttenuation property is part of the attenuation equation which also includes PointLight.LinearAttenuation and PointLight.ConstantAttenuation:
Applies to
See also
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro