lib/mittsu/cameras/perspective_camera.rb in mittsu-0.3.1 vs lib/mittsu/cameras/perspective_camera.rb in mittsu-0.3.2

- old
+ new

@@ -1,7 +1,5 @@ -require 'mittsu' - module Mittsu class PerspectiveCamera < Camera attr_accessor :zoom, :fov, :aspect, :near, :far def initialize(fov = 50.0, aspect = 1.0, near = 0.1, far = 2000.0) @@ -13,9 +11,10 @@ @fov = fov.to_f @aspect = aspect.to_f @near = near.to_f @far = far.to_f + @full_width = nil update_projection_matrix end # Uses Focal Length (in mm) to estimate and set FOV