Class: PBRT::Builder::Camera
- Inherits:
-
Object
- Object
- PBRT::Builder::Camera
- Defined in:
- lib/pbrt/builder/camera.rb
Instance Method Summary collapse
- #environment(params = {}) ⇒ Object
-
#initialize(builder) ⇒ Camera
constructor
A new instance of Camera.
- #orthographic(params = {}) ⇒ Object
- #perspective(params = {}) ⇒ Object
- #realistic(params = {}) ⇒ Object
Constructor Details
#initialize(builder) ⇒ Camera
Returns a new instance of Camera.
4 5 6 |
# File 'lib/pbrt/builder/camera.rb', line 4 def initialize(builder) @builder = builder end |
Instance Method Details
#environment(params = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/pbrt/builder/camera.rb', line 8 def environment(params = {}) write Statement.variadic("Camera", "environment", ParameterList.from( params, shutteropen: :float, shutterclose: :float, frameaspectratio: :float, screenwindow: :float, )) end |
#orthographic(params = {}) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/pbrt/builder/camera.rb', line 19 def orthographic(params = {}) write Statement.variadic("Camera", "orthographic", ParameterList.from( params, shutteropen: :float, shutterclose: :float, frameaspectratio: :float, screenwindow: :float, lensradius: :float, focaldistance: :float, )) end |
#perspective(params = {}) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/pbrt/builder/camera.rb', line 32 def perspective(params = {}) write Statement.variadic("Camera", "perspective", ParameterList.from( params, shutteropen: :float, shutterclose: :float, frameaspectratio: :float, screenwindow: :float, lensradius: :float, focaldistance: :float, fov: :float, halffov: :float, )) end |
#realistic(params = {}) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/pbrt/builder/camera.rb', line 47 def realistic(params = {}) write Statement.variadic("Camera", "realistic", ParameterList.from( params, shutteropen: :float, shutterclose: :float, lensfile: :string, aperturediameter: :float, focusdistance: :float, simpleweighting: :bool, )) end |