Class: Stagecraft::Lights::Point
- Defined in:
- lib/stagecraft/lights/point_light.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#range ⇒ Object
Returns the value of attribute range.
Attributes inherited from Light
Attributes inherited from Node
#cast_shadow, #children, #name, #parent, #position, #receive_shadow, #render_order, #rotation, #scale, #visible, #world_version
Instance Method Summary collapse
-
#initialize(range: Float::INFINITY) ⇒ Point
constructor
A new instance of Point.
Methods inherited from Light
Methods inherited from Node
#add, #find, #local_matrix, #look_at, #remove, #transform_dirty!, #traverse, #world_matrix, #world_matrix_with_version, #world_position
Constructor Details
#initialize(range: Float::INFINITY) ⇒ Point
Returns a new instance of Point.
8 9 10 11 |
# File 'lib/stagecraft/lights/point_light.rb', line 8 def initialize(range: Float::INFINITY, **) super(**) self.range = range end |
Instance Attribute Details
#range ⇒ Object
Returns the value of attribute range.
6 7 8 |
# File 'lib/stagecraft/lights/point_light.rb', line 6 def range @range end |