SpotLightComponent constructor

SpotLightComponent(
  1. SpotLight light
)

Creates a component that lights the scene with light.

Implementation

SpotLightComponent(this.light);