Path Tracing
Loading...
Searching...
No Matches
RenderConfig Struct Reference

#include <config.hpp>

Public Member Functions

glm::vec3 sunDirection ()

Public Attributes

int scene_preset = 0
int debug_view = 0
 0 off, 1 shading normals, 2 geometric normals
int depth = 5
int samples_per_pixel = 1
int rr_min_bounces = 2
float rr_max_survival = 0.60
int background = 1
int tone_mapping = 2
float vignette_strength = 0.0f
float exposure_ev = 0.0f
bool auto_exposure_enabled = false
 Runs updateAutoExposure() periodically while true.
float auto_exposure_speed = 0.2f
bool use_ground_plane = false
float ground_elevation = -1.0f
float ground_albedo = 0.8f
float ground_radius = 5.0f
float cam_aperture = 0.00
float cam_focal_distance = 4.7
float cam_fov = 80.0f
bool focal_debug = false
float focal_band_debug = 0.05
int cam_aperture_blades = 0
float cam_blade_rotation = 0.0f
 Rotates the polygon aperture shape, in degrees.
float cam_anamorphic_squeeze = 1.0f
 Anamorphic sqeeze ratio for oval bokeh.
float cam_cateye_strength = 0.0f
 Mechanical vignette on the bokeh shape near frame edges, like cat's-eye.
float cam_distortion_k1 = 0.0f
 Radial lens distortion. Negative K1 = barrel, Positive K1 = pincushion.
float cam_distortion_k2 = 0.0f
int cam_projection_mode = 0
float cam_tilt = 0.0f
 Tilt-shift, tilts the focal plane around the camera's local x-axis, in degrees.
float cam_lateral_ca = 0.0f
 Lateral (transverse) Chromatic Aberration strength, per-channel shift.
float cam_axial_ca = 0.0f
float glass_dispersion = 0.0f
 Glass dispersion strength (prism effect). Perturbs the IOR of MAT_GLASS.
int moving_resolution = 256
 render resolution when moving the camera and while Preview Mode is active
bool lock_preview_res = true
bool progressive_refine = true
 controls the progressive resolution scaling up to the original
bool tile_dispatch = false
int tile_rows = 4
 Number of work groups per tile. Less is more safe, but more sync overhead.
bool use_nee = true
 Enables Next Event Estimation.
int force_material = -1
bool use_textures = true
 Texture enable.
float firefly_clamp = 10.0f
bool ground_shadow_catcher = false
 Shadow catcher for ground to only have shadows visible.
float ground_shadow_opacity = 0.6f
bool sun_enabled = true
float sun_elevation = 45.0f
float sun_azimuth = 180.0f
float sun_intensity = 2.5f
glm::vec3 sun_color = glm::vec3(1.0f, 0.95f, 0.8f)
float sun_angular_radius = 2.0f

Member Function Documentation

◆ sunDirection()

glm::vec3 RenderConfig::sunDirection ( )
inline

Member Data Documentation

◆ auto_exposure_enabled

bool RenderConfig::auto_exposure_enabled = false

Runs updateAutoExposure() periodically while true.

◆ auto_exposure_speed

float RenderConfig::auto_exposure_speed = 0.2f

Speed of the exposure adjustement

Note
0 = frozen, 1 = instant, 0-1 = moves gradually

◆ background

int RenderConfig::background = 1

◆ cam_anamorphic_squeeze

float RenderConfig::cam_anamorphic_squeeze = 1.0f

Anamorphic sqeeze ratio for oval bokeh.

◆ cam_aperture

float RenderConfig::cam_aperture = 0.00

◆ cam_aperture_blades

int RenderConfig::cam_aperture_blades = 0

Aperture blade count for bokeh shape

Note
<3 = perfect circular (default)

◆ cam_axial_ca

float RenderConfig::cam_axial_ca = 0.0f

◆ cam_blade_rotation

float RenderConfig::cam_blade_rotation = 0.0f

Rotates the polygon aperture shape, in degrees.

◆ cam_cateye_strength

float RenderConfig::cam_cateye_strength = 0.0f

Mechanical vignette on the bokeh shape near frame edges, like cat's-eye.

◆ cam_distortion_k1

float RenderConfig::cam_distortion_k1 = 0.0f

Radial lens distortion. Negative K1 = barrel, Positive K1 = pincushion.

◆ cam_distortion_k2

float RenderConfig::cam_distortion_k2 = 0.0f

◆ cam_focal_distance

float RenderConfig::cam_focal_distance = 4.7

◆ cam_fov

float RenderConfig::cam_fov = 80.0f

◆ cam_lateral_ca

float RenderConfig::cam_lateral_ca = 0.0f

Lateral (transverse) Chromatic Aberration strength, per-channel shift.

◆ cam_projection_mode

int RenderConfig::cam_projection_mode = 0

Camera projection 0=rectilinear, 1=equidistant fisheye, 2=stereographic fisheye, 3=equisolid fisheye

◆ cam_tilt

float RenderConfig::cam_tilt = 0.0f

Tilt-shift, tilts the focal plane around the camera's local x-axis, in degrees.

◆ debug_view

int RenderConfig::debug_view = 0

0 off, 1 shading normals, 2 geometric normals

See also
DEBUG_VIEW

◆ depth

int RenderConfig::depth = 5

◆ exposure_ev

float RenderConfig::exposure_ev = 0.0f

Exposure in stops (EV), converted to a linear mult

Note
0 = no change

◆ firefly_clamp

float RenderConfig::firefly_clamp = 10.0f

Firefly clamping

Note
0 is disabled\n10 is default

◆ focal_band_debug

float RenderConfig::focal_band_debug = 0.05

◆ focal_debug

bool RenderConfig::focal_debug = false

◆ force_material

int RenderConfig::force_material = -1

Forces one material on the mesh

Note
-1 = disabled

◆ glass_dispersion

float RenderConfig::glass_dispersion = 0.0f

Glass dispersion strength (prism effect). Perturbs the IOR of MAT_GLASS.

◆ ground_albedo

float RenderConfig::ground_albedo = 0.8f

◆ ground_elevation

float RenderConfig::ground_elevation = -1.0f

◆ ground_radius

float RenderConfig::ground_radius = 5.0f

◆ ground_shadow_catcher

bool RenderConfig::ground_shadow_catcher = false

Shadow catcher for ground to only have shadows visible.

◆ ground_shadow_opacity

float RenderConfig::ground_shadow_opacity = 0.6f

◆ lock_preview_res

bool RenderConfig::lock_preview_res = true

Persistent preview mode, pins the renderer at moving_resolution to keep the program responsive. Interacted via the Render button

See also
setPreviewMode, setFullResolution

◆ moving_resolution

int RenderConfig::moving_resolution = 256

render resolution when moving the camera and while Preview Mode is active

◆ progressive_refine

bool RenderConfig::progressive_refine = true

controls the progressive resolution scaling up to the original

◆ rr_max_survival

float RenderConfig::rr_max_survival = 0.60

◆ rr_min_bounces

int RenderConfig::rr_min_bounces = 2

◆ samples_per_pixel

int RenderConfig::samples_per_pixel = 1

◆ scene_preset

int RenderConfig::scene_preset = 0

◆ sun_angular_radius

float RenderConfig::sun_angular_radius = 2.0f

◆ sun_azimuth

float RenderConfig::sun_azimuth = 180.0f

◆ sun_color

glm::vec3 RenderConfig::sun_color = glm::vec3(1.0f, 0.95f, 0.8f)

◆ sun_elevation

float RenderConfig::sun_elevation = 45.0f

◆ sun_enabled

bool RenderConfig::sun_enabled = true

◆ sun_intensity

float RenderConfig::sun_intensity = 2.5f

◆ tile_dispatch

bool RenderConfig::tile_dispatch = false

Splits the dispatch of the compute shader in smaller tiles

Note
necessary method on weak GPUs to avoid watchdog driver timeout if one dispatch takes too long.

◆ tile_rows

int RenderConfig::tile_rows = 4

Number of work groups per tile. Less is more safe, but more sync overhead.

◆ tone_mapping

int RenderConfig::tone_mapping = 2

◆ use_ground_plane

bool RenderConfig::use_ground_plane = false

◆ use_nee

bool RenderConfig::use_nee = true

Enables Next Event Estimation.

◆ use_textures

bool RenderConfig::use_textures = true

Texture enable.

◆ vignette_strength

float RenderConfig::vignette_strength = 0.0f

Vignette strength for display shader

Note
0 = off (default)

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