lib/mittsu/cameras/perspective_camera.rb in mittsu-0.1.1 vs lib/mittsu/cameras/perspective_camera.rb in mittsu-0.1.2
- old
+ new
@@ -109,7 +109,18 @@
camera.projection_matrix.copy(projection_matrix)
camera
end
+
+ protected
+
+ def jsonify
+ data = super
+ data[:fov] = self.fov
+ data[:aspect] = self.aspect
+ data[:near] = self.near
+ data[:far] = self.far
+ data
+ end
end
end