class Prism::PointLight

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.cr

Constructors

Instance Method Summary

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, attenuation : Prism::Attenuation) #

[View source]
def self.new(color : Prism::Maths::Vector3f) #

Creates a new light. The light will automatically follow the position of it's Prism::Entity.


[View source]

Instance Method Detail

def attenuation : Prism::Attenuation #

[View source]
def attenuation=(attenuation : Prism::Attenuation) #

[View source]

[View source]
def color=(color : Prism::Maths::Vector3f) #

[View source]
def input!(tick : RenderLoop::Tick, input : RenderLoop::Input, entity : Crash::Entity) #
Description copied from module Prism::InputReceiver

Receives input events from the InputSubscriber


[View source]
def position : Prism::Maths::Vector3f #

[View source]