Class: PBRT::Builder::Integrator
- Inherits:
-
Object
- Object
- PBRT::Builder::Integrator
- Defined in:
- lib/pbrt/builder/integrator.rb
Instance Method Summary collapse
- #bdpt(params = {}) ⇒ Object
- #directlighting(params = {}) ⇒ Object
-
#initialize(builder) ⇒ Integrator
constructor
A new instance of Integrator.
- #mlt(params = {}) ⇒ Object
- #path(params = {}) ⇒ Object
- #sppm(params = {}) ⇒ Object
- #whitted(params = {}) ⇒ Object
Constructor Details
#initialize(builder) ⇒ Integrator
Returns a new instance of Integrator.
4 5 6 |
# File 'lib/pbrt/builder/integrator.rb', line 4 def initialize(builder) @builder = builder end |
Instance Method Details
#bdpt(params = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/pbrt/builder/integrator.rb', line 8 def bdpt(params = {}) write Statement.variadic("Integrator", "bdpt", ParameterList.from( params, maxdepth: :integer, pixelbounds: :integer, lightsamplestrategy: :string, visualizestrategies: :bool, visualizeweights: :bool, )) end |
#directlighting(params = {}) ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/pbrt/builder/integrator.rb', line 20 def directlighting(params = {}) write Statement.variadic("Integrator", "directlighting", ParameterList.from( params, strategy: :string, maxdepth: :integer, pixelbounds: :integer, )) end |
#mlt(params = {}) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/pbrt/builder/integrator.rb', line 30 def mlt(params = {}) write Statement.variadic("Integrator", "mlt", ParameterList.from( params, maxdepth: :integer, bootstrapsamples: :integer, chains: :integer, mutationsperpixel: :integer, largestepprobability: :float, sigma: :float, )) end |
#path(params = {}) ⇒ Object
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/pbrt/builder/integrator.rb', line 43 def path(params = {}) write Statement.variadic("Integrator", "path", ParameterList.from( params, maxdepth: :integer, pixelbounds: :integer, rrthreshold: :float, lightsamplestrategy: :string, )) end |
#sppm(params = {}) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/pbrt/builder/integrator.rb', line 54 def sppm(params = {}) write Statement.variadic("Integrator", "sppm", ParameterList.from( params, maxdepth: :integer, iterations: :integer, photonsperiteration: :integer, imagewritefrequency: :integer, radius: :float, )) end |
#whitted(params = {}) ⇒ Object
66 67 68 69 70 71 72 73 |
# File 'lib/pbrt/builder/integrator.rb', line 66 def whitted(params = {}) write Statement.variadic("Integrator", "whitted", ParameterList.from( params, maxdepth: :integer, pixelbounds: :integer, )) end |