tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
tpbrt_sampler_stratified_params_t Struct Reference

Stratified sampler parameters. More...

#include <tinypbrt/detail/sampler.h>

Data Fields

tpbrt_uint_t x_samples
 The number of samples per pixel to take in the x direction.
 
tpbrt_uint_t y_samples
 The number of samples per pixel to take in the y direction. In general, "xsamples" and "ysamples" should be set to the same value for best results.
 
tpbrt_bool_t jitter: 1
 Whether or not the generated samples should be jittered inside each stratum; this is generally only worth setting to "false" for comparisons between jittered and uniform sampling—uniform sampling will almost always give a worse result.
 

Detailed Description

Stratified sampler parameters.

Field Documentation

◆ x_samples

tpbrt_uint_t tpbrt_sampler_stratified_params_t::x_samples

The number of samples per pixel to take in the x direction.

Examples
examples/scene_info/main.c.

◆ y_samples

tpbrt_uint_t tpbrt_sampler_stratified_params_t::y_samples

The number of samples per pixel to take in the y direction. In general, "xsamples" and "ysamples" should be set to the same value for best results.

Examples
examples/scene_info/main.c.

◆ jitter

tpbrt_bool_t tpbrt_sampler_stratified_params_t::jitter

Whether or not the generated samples should be jittered inside each stratum; this is generally only worth setting to "false" for comparisons between jittered and uniform sampling—uniform sampling will almost always give a worse result.

Examples
examples/scene_info/main.c.

The documentation for this struct was generated from the following file: