Class: Stagecraft::Cameras::Camera
- Defined in:
- lib/stagecraft/cameras/camera.rb
Direct Known Subclasses
Instance Attribute Summary
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 Node
#add, #find, #initialize, #local_matrix, #look_at, #remove, #transform_dirty!, #traverse, #world_matrix, #world_matrix_with_version, #world_position
Constructor Details
This class inherits a constructor from Stagecraft::Node
Instance Method Details
#view_matrix ⇒ Object
6 7 8 |
# File 'lib/stagecraft/cameras/camera.rb', line 6 def view_matrix world_matrix.inverse end |
#view_projection_matrix ⇒ Object
10 11 12 |
# File 'lib/stagecraft/cameras/camera.rb', line 10 def view_projection_matrix projection_matrix * view_matrix end |