Class: PBRT::Builder::Sampler
- Inherits:
-
Object
- Object
- PBRT::Builder::Sampler
- Defined in:
- lib/pbrt/builder/sampler.rb
Instance Method Summary collapse
- #halton(params = {}) ⇒ Object
-
#initialize(builder) ⇒ Sampler
constructor
A new instance of Sampler.
- #maxmindist(params = {}) ⇒ Object
- #o2sequence(params = {}) ⇒ Object
- #random(params = {}) ⇒ Object
- #sobol(params = {}) ⇒ Object
- #stratified(params = {}) ⇒ Object
Constructor Details
#initialize(builder) ⇒ Sampler
Returns a new instance of Sampler.
4 5 6 |
# File 'lib/pbrt/builder/sampler.rb', line 4 def initialize(builder) @builder = builder end |
Instance Method Details
#halton(params = {}) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/pbrt/builder/sampler.rb', line 15 def halton(params = {}) write Statement.variadic("Sampler", "halton", ParameterList.from( params, pixelsamples: :integer, )) end |
#maxmindist(params = {}) ⇒ Object
22 23 24 25 26 27 |
# File 'lib/pbrt/builder/sampler.rb', line 22 def maxmindist(params = {}) write Statement.variadic("Sampler", "maxmindist", ParameterList.from( params, pixelsamples: :integer, )) end |
#o2sequence(params = {}) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/pbrt/builder/sampler.rb', line 8 def o2sequence(params = {}) write Statement.variadic("Sampler", "02sequence", ParameterList.from( params, pixelsamples: :integer, )) end |
#random(params = {}) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/pbrt/builder/sampler.rb', line 29 def random(params = {}) write Statement.variadic("Sampler", "random", ParameterList.from( params, pixelsamples: :integer, )) end |
#sobol(params = {}) ⇒ Object
36 37 38 39 40 41 |
# File 'lib/pbrt/builder/sampler.rb', line 36 def sobol(params = {}) write Statement.variadic("Sampler", "sobol", ParameterList.from( params, pixelsamples: :integer, )) end |
#stratified(params = {}) ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'lib/pbrt/builder/sampler.rb', line 43 def stratified(params = {}) write Statement.variadic("Sampler", "stratified", ParameterList.from( params, jitter: :bool, xsamples: :integer, ysamples: :integer, )) end |