class Prism::PointLight
- Prism::PointLight
- Crash::Component
- Reference
- Object
Overview
Produces an attenuated point of light. The light will attach to the position of it's entity.
Included Modules
Defined in:
prism/stdlib/point_light.crConstructors
- .new(color : Prism::Maths::Vector3f, attenuation : Prism::Attenuation)
-
.new(color : Prism::Maths::Vector3f)
Creates a new light.
Instance Method Summary
- #attenuation : Prism::Attenuation
- #attenuation=(attenuation : Prism::Attenuation)
- #color : Prism::Maths::Vector3f
- #color=(color : Prism::Maths::Vector3f)
-
#input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity)
Receives input events from the
InputSubscriber
- #position : Prism::Maths::Vector3f
Instance methods inherited from module Prism::InputReceiver
input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity)
input!
Instance methods inherited from module Prism::Shader::UniformStruct
to_uniform
to_uniform
Constructor Detail
def self.new(color : Prism::Maths::Vector3f)
#
Creates a new light.
The light will automatically follow the position of it's Prism::Entity
.
Instance Method Detail
def input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity)
#
Description copied from module Prism::InputReceiver
Receives input events from the InputSubscriber