class PBRT::Builder::Integrator
Public Class Methods
new(builder)
click to toggle source
# File lib/pbrt/builder/integrator.rb, line 4 def initialize(builder) @builder = builder end
Public Instance Methods
bdpt(params = {})
click to toggle source
# 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 = {})
click to toggle source
# 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 = {})
click to toggle source
# 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 = {})
click to toggle source
# 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 = {})
click to toggle source
# 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 = {})
click to toggle source
# File lib/pbrt/builder/integrator.rb, line 66 def whitted(params = {}) write Statement.variadic("Integrator", "whitted", ParameterList.from( params, maxdepth: :integer, pixelbounds: :integer, )) end
Private Instance Methods
write(statement)
click to toggle source
# File lib/pbrt/builder/integrator.rb, line 77 def write(statement) @builder.write(statement) end