#include <core/Context.h>
Public Member Functions | |
| Context (const Context &c) | |
| Context & | operator= (const Context &c) |
| void | reset () |
| void | resetLightSeed () |
| void | resetPathSeed () |
| void | resetIntersectSeed () |
| void | print () |
Public Attributes | |
| double | near |
| initial ray.tmin value | |
| double | far |
| initial ray.tmax value | |
| double | shutter_open |
| shutter opening time | |
| double | shutter_close |
| shutter closing time | |
| ThreadContext * | thread_context |
| Thread local context. | |
| Scene * | scene |
| The Scene being rendered. | |
| int | max_depth |
| Maximum bounce depth allowed. | |
| bool | spectral_flag |
| True if spectral rendering. | |
| double | wavelength |
| Current wavelength. | |
Image Options | |
| int | ns |
| take ns*ns samples | |
| int | nx |
| width of rendered image | |
| int | ny |
| height of rendered image | |
| char * | image_name |
| name of the image to be written to disk | |
| Tonemapper * | tonemapper |
| tonemapper to be run on rendered image | |
| Camera * | camera |
| camera scene will be rendered with | |
| ImageIO * | imageio |
| ImageIO plugin for writing the image. | |
| double | gamma |
| gamma value. | |
| double | gain |
| linear gain factor. | |
Trace Arguments | |
| int | depth |
| Current depth of path. | |
| double | time |
| Time of path. | |
| double | intersect_seed |
| Probabilistic intersection seed. | |
| Vector2 | light_seed |
| Light sampling seed. | |
| Vector2 | path_seed |
| Path sampling seed. | |
| Ray | ray |
| The current Ray segment. | |
The rendering context contains rendering options (number of samples per pixel, image width and height, etc), the description of the current path (depth, time, the ray segment being traced, etc) and a ThreadContext for holding random number generators and random seeds.
1.4.3