init(color:intensity:attenuationRadius:)
Creates a point light component with a configuration.
Declaration
init(color: PointLightComponent.Color = .white, intensity: Float = 26963.76, attenuationRadius: Float = 10.0)Parameters
- color:
The color of the light.
- intensity:
The intensity of the light in lumens.
- attenuationRadius:
The distance from the light source where its intensity reaches zero. Any objects at or beyond this distance do not receive illumination.