Class: Stagecraft::Lights::Point

Inherits:
Light
  • Object
show all
Defined in:
lib/stagecraft/lights/point_light.rb

Direct Known Subclasses

Spot

Instance Attribute Summary collapse

Attributes inherited from Light

#color, #intensity

Attributes inherited from Node

#cast_shadow, #children, #name, #parent, #position, #receive_shadow, #render_order, #rotation, #scale, #visible, #world_version

Instance Method Summary collapse

Methods inherited from Light

#direction

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

#rangeObject

Returns the value of attribute range.



6
7
8
# File 'lib/stagecraft/lights/point_light.rb', line 6

def range
  @range
end