Path Tracing
Loading...
Searching...
No Matches
config.hpp
Go to the documentation of this file.
1#pragma once
2#include "gl/program.hpp"
3#include "debug.hpp"
4#include <string>
5#include <vector>
6#include <filesystem>
7#include <glm/glm.hpp>
8#include <GL/glew.h>
9#include <atomic>
10#include <glm/gtc/matrix_transform.hpp>
11
13inline int WINDOW_WIDTH = 1280, WINDOW_HEIGHT = 720;
14inline bool is_fullscreen = false;
15inline int windowed_x = 100, windowed_y = 100;
16inline int windowed_w = 1280, windowed_h = 720;
17
21const bool USE_COMPUTE_SH = true;
22
23struct SceneModel {
24 std::string path = "";
25 glm::vec3 position = glm::vec3(0.0f);
26 glm::vec3 rotation = glm::vec3(0.0f);
27 glm::vec3 scale = glm::vec3(1.0f);
28 std::atomic<int> tri_count = 0;
29 std::atomic<int> mat_count = 0;
30};
31
33 int scene_preset = 0;
34
36 int debug_view = 0;
37
38 int depth = 5;
41 float rr_max_survival = 0.60;
42
43 int background = 1;
44
45 int tone_mapping = 2;
46
49 float vignette_strength = 0.0f;
50
53 float exposure_ev = 0.0f;
54
57
60 float auto_exposure_speed = 0.2f;
61
62 bool use_ground_plane = false;
63 float ground_elevation = -1.0f;
64 float ground_albedo = 0.8f;
65 float ground_radius = 5.0f;
66
67 float cam_aperture = 0.00;
68 float cam_focal_distance = 4.7;
69 float cam_fov = 80.0f;
70
71 bool focal_debug = false;
72 float focal_band_debug = 0.05;
73
77
79 float cam_blade_rotation = 0.0f;
80
83
85 float cam_cateye_strength = 0.0f;
86
88 float cam_distortion_k1 = 0.0f;
89 float cam_distortion_k2 = 0.0f;
90
94
96 float cam_tilt = 0.0f;
97
99 float cam_lateral_ca = 0.0f;
100
101 //Axial (longitudinal) Chromatic Aberration, per-channel focus shift
102 float cam_axial_ca = 0.0f;
103
105 float glass_dispersion = 0.0f;
106
107 //Not part of the shader config
110 //Locks the viewport into preview pode while active
114 bool lock_preview_res = true;
117
120 bool tile_dispatch = false;
122 int tile_rows = 4;
123
125 bool use_nee = true;
126
130
132 bool use_textures = true;
133
137 float firefly_clamp = 10.0f;
138
141
143
144 //Sun
145 bool sun_enabled = true;
146 float sun_elevation = 45.0f;
147 float sun_azimuth = 180.0f;
148 float sun_intensity = 2.5f;
149 glm::vec3 sun_color = glm::vec3(1.0f, 0.95f, 0.8f);
150 float sun_angular_radius = 2.0f;
151
152 glm::vec3 sunDirection() {
153 float el = glm::radians(sun_elevation);
154 float az = glm::radians(sun_azimuth);
155 return normalize(glm::vec3(cos(el) * sin(az), cos(el) * cos(az), sin(el)));
156 }
157};
158
159struct Renderer {
161
162 int v_sync = 0;
163
164 uint MAX_SAMPLES = 50;
165
167
170 glm::vec3 current_bounds_min = glm::vec3(-1.0f);
171 glm::vec3 current_bounds_max = glm::vec3(1.0f);
172
175 GLuint tex[2], fbo[2], vao;
177 int frame_id = 0, cur_f = 0, prev_f = 1;
178
180
183
185
188
197
199
207
208 bool show_grid = false;
212
217
222
228
229 //BVH
233 bool bvh_heatmap = false;
235
236 //NEE
238
239 // Firefly Clamp
241
242 //Light
243 //memory buffers
248
249 //Scene Presets
251
252 //HDRI Environment Map
256 bool use_env_map = false;
257 std::string current_env_map = "";
258
259 //Textures
265
266 //Materials
268
269 //Ground plane
274
277
278 //Denoiser
280 //denoiser status showing the result
281 bool denoiser_active = false;
282 //enable toggle on UI
283 bool denoiser_enabled = true;
285 std::vector<int> denoise_checkpoints;
286 std::string denoise_status_msg = "";
287 double denoise_msg_time = 0.0;
288};
289
291 glm::vec3 position = glm::vec3(0.0f, -5.0f, 0.0f);
292 glm::vec3 lookat = glm::vec3(0.0f, 0.0f, 0.0f);
293 glm::vec3 up = glm::vec3(0.0f, 0.0f, 1.0f);
294
295 float move_speed = 0.01f;
296 float mouse_sens = 0.002f;
297 float pitch = 0.0f;
298 float yaw = 1.57f;
299 bool moving = false;
300 bool returning_home = false;
301 float return_speed = 3.0f;
302};
303
304/*----------------------------------------------------------
305 Screenshots
306*/
307
308inline std::string screenshot_msg = "";
309inline double screenshot_msg_time = 0.0;
310
312const int TM_NONE = 0;
313const int TM_REINHARD = 1;
314const int TM_ACES = 2;
315const int TM_FILMIC = 3;
316
320inline glm::vec3 toneMapCPU(glm::vec3 color, int tone_mapping) {
321 switch(tone_mapping) {
322 case TM_REINHARD:
323 return color / (color + glm::vec3(1.0f));
324 case TM_ACES: {
325 const glm::mat3 inputMat(
326 0.59719f, 0.07600f, 0.02840f,
327 0.35458f, 0.90834f, 0.13383f,
328 0.04823f, 0.01566f, 0.83777f
329 );
330 const glm::mat3 outputMat(
331 1.60475f, -0.10208f, -0.00327f,
332 -0.53108f, 1.10813f, -0.07276f,
333 -0.07367f, -0.00605f, 1.07602f
334 );
335 glm::vec3 v = inputMat * color;
336 glm::vec3 a = v * (v + 0.0245786f) - 0.000090537f;
337 glm::vec3 b = v * (0.983729f * v + 0.4329510f) + 0.238081f;
338 return glm::clamp(outputMat * (a / b), 0.0f, 1.0f);
339 }
340 case TM_FILMIC: {
341 //Matches display.frag's uncharted2ToneMapPartial,uncharted2Filmic
342 const float A = 0.15f, B = 0.50f, C = 0.10f, D = 0.20f, E = 0.02f, F = 0.30f;
343 auto partial = [&](glm::vec3 x) -> glm::vec3 {
344 return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F)) - glm::vec3(E/F);
345 };
346 const float exposure_bias = 2.0f;
347 glm::vec3 curr = partial(color * exposure_bias);
348 glm::vec3 white_scale = glm::vec3(1.0f) / partial(glm::vec3(11.2f));
349 return glm::clamp(curr * white_scale, 0.0f, 1.0f);
350 }
351 default:
352 return glm::clamp(color, 0.0f, 1.0f);
353 }
354}
355
357struct AspectRatioOption { const char* name; float ratio; };
358
360 {"Off", 0.0f},
361 {"1:1 Square", 1.0f},
362 {"4:5 Portrait", 4.0f/5.0f},
363 {"5:4", 5.0f/4.0f},
364 {"3:2 Photo", 3.0f/2.0f},
365 {"4:3", 4.0f/3.0f},
366 {"16:9 Widescreen", 16.0f/9.0f},
367 {"1.85:1 Cinema", 1.85f},
368 {"2.35:1 Cinemascope", 2.35f}
369};
370
371const int ASPECT_RATIO_COUNT = sizeof(ASPECT_RATIOS) / sizeof(ASPECT_RATIOS[0]);
372
375inline const char* COMPOSITION_GUIDE_NAMES[] = {
376 "Off", "Rule of Thirds", "Golden Ratio", "Center Cross", "Diagonal"
377};
378
380
381/*----------------------------------------------------------
382 Camera Projection
383*/
385const int PROJ_RECTILINEAR = 0;
389
392inline const char* CAM_PROJECTION_NAMES[] = {
393 "Rectilinear", "Fisheye (Equidistant)", "Fisheye (Stereographic)", "Fisheye (Equisolid)"
394};
395
397
399inline float camFovCap(int projection_mode) {
400 return (projection_mode == PROJ_RECTILINEAR) ? 100.0f : 179.0f;
401}
402
403/*----------------------------------------------------------
404 Camera Lens Presets
405*/
406
423
427 {"Reset / Off",
428 "Rectilinear pinhole, no lens character",
429 80.0f, 0.00f, 0, 0.0f, 1.0f, 0.00f, 0.00f, 0.00f, PROJ_RECTILINEAR, 0.0f, 0.000f, 0.000f},
430
431 {"Nifty Fifty (50mm f/1.8)",
432 "Classic budget prime: 7-blade slightly-polygonal bokeh, a little barrel distortion and purple fringing wide open",
433 40.0f, 0.08f, 7, 0.0f, 1.0f, 0.30f, -0.02f, 0.00f, PROJ_RECTILINEAR, 0.0f, 0.008f, 0.012f},
434
435 {"Vintage Swirl (Helios-style)",
436 "Octagonal bokeh with strong cat's-eye toward the edges and visible fringing - approximates the classic Soviet 58mm look. Not true optical swirl (needs field curvature, not modeled)",
437 35.0f, 0.18f, 8, 0.0f, 1.0f, 0.90f, 0.00f, 0.00f, PROJ_RECTILINEAR, 0.0f, 0.020f, 0.030f},
438
439 {"Modern Prime (Clinical)",
440 "Well-corrected high-end look: perfectly circular bokeh, no distortion, negligible CA - contrast this against the vintage presets",
441 45.0f, 0.10f, 0, 0.0f, 1.0f, 0.00f, 0.00f, 0.00f, PROJ_RECTILINEAR, 0.0f, 0.000f, 0.000f},
442
443 {"Cinema Anamorphic 2x",
444 "Oval horizontally-stretched bokeh, the classic widescreen cinema look",
445 50.0f, 0.15f, 0, 0.0f, 1.8f, 0.00f, 0.00f, 0.00f, PROJ_RECTILINEAR, 0.0f, 0.010f, 0.010f},
446
447 {"Fisheye - Circular",
448 "Equidistant projection, ~175 degree FOV - full circular fisheye look",
449 175.0f, 0.00f, 0, 0.0f, 1.0f, 0.00f, 0.00f, 0.00f, PROJ_FISHEYE_EQUIDISTANT, 0.0f, 0.000f, 0.000f},
450
451 {"Fisheye - Action Cam",
452 "Equisolid projection, ~150 degree FOV - GoPro/action-cam style wide angle",
453 150.0f, 0.00f, 0, 0.0f, 1.0f, 0.00f, 0.00f, 0.00f, PROJ_FISHEYE_EQUISOLID, 0.0f, 0.000f, 0.000f},
454
455 {"Toy Lens (Lo-Fi)",
456 "Cheap plastic meniscus lens look: heavy barrel distortion and poorly-corrected color fringing",
457 55.0f, 0.05f, 0, 0.0f, 1.0f, 0.00f, -0.35f, 0.10f, PROJ_RECTILINEAR, 0.0f, 0.030f, 0.020f},
458
459 {"Tilt-Shift Miniature",
460 "Strong tilt + big aperture - the toy-model look",
461 70.0f, 0.30f, 0, 0.0f, 1.0f, 0.00f, 0.00f, 0.00f, PROJ_RECTILINEAR, 8.0f, 0.000f, 0.000f},
462};
463
464const int LENS_PRESET_COUNT = sizeof(LENS_PRESETS) / sizeof(LENS_PRESETS[0]);
465
466#if LENS_TEST_PRESETS_DEBUG
470 {"Test: Lateral CA",
471 "Pinhole so only lateral CA shows - fringing at the corners, clean at center",
472 80.0f, 0.00f, 0, 0.0f, 1.0f, 0.00f, 0.00f, 0.00f, PROJ_RECTILINEAR, 0.0f, 0.030f, 0.000f},
473
474 {"Test: Axial CA (Bokeh Fringe)",
475 "DOF on, only axial CA - color fringing on out-of-focus highlights",
476 60.0f, 0.15f, 0, 0.0f, 1.0f, 0.00f, 0.00f, 0.00f, PROJ_RECTILINEAR, 0.0f, 0.000f, 0.030f},
477
478 {"Test: Hexagonal Bokeh",
479 "6-blade aperture - look at out-of-focus highlights",
480 60.0f, 0.15f, 6, 0.0f, 1.0f, 0.00f, 0.00f, 0.00f, PROJ_RECTILINEAR, 0.0f, 0.000f, 0.000f},
481
482 {"Test: Barrel Distortion",
483 "Pinhole, wide FOV - straight lines bow outward",
484 90.0f, 0.00f, 0, 0.0f, 1.0f, 0.00f, -0.25f, 0.00f, PROJ_RECTILINEAR, 0.0f, 0.000f, 0.000f},
485
486 {"Test: Pincushion Distortion",
487 "Pinhole - straight lines pinch inward",
488 60.0f, 0.00f, 0, 0.0f, 1.0f, 0.00f, 0.25f, 0.00f, PROJ_RECTILINEAR, 0.0f, 0.000f, 0.000f},
489};
491#endif
492
494inline int lensPresetCount() {
495#if LENS_TEST_PRESETS_DEBUG
497#else
498 return LENS_PRESET_COUNT;
499#endif
500}
501
503inline const LensPreset& lensPresetAt(int idx) {
504#if LENS_TEST_PRESETS_DEBUG
506#endif
507 return LENS_PRESETS[idx];
508}
RAII wrapper around an OpenGL shader program. load() only replaces the held program on a successfull ...
Definition program.hpp:12
const int LENS_TEST_PRESET_COUNT
Definition config.hpp:490
int windowed_y
Definition config.hpp:15
bool is_fullscreen
Definition config.hpp:14
double screenshot_msg_time
Definition config.hpp:309
const LensPreset LENS_TEST_PRESETS[]
Definition config.hpp:469
int lensPresetCount()
Number of presets currently visible depending on debug mode.
Definition config.hpp:494
int windowed_w
Definition config.hpp:16
const int ASPECT_RATIO_COUNT
Definition config.hpp:371
const int COMPOSITION_GUIDE_COUNT
Definition config.hpp:379
float camFovCap(int projection_mode)
Max FOV for a projection mode.
Definition config.hpp:399
const bool USE_COMPUTE_SH
Definition config.hpp:21
int windowed_x
Definition config.hpp:15
int WINDOW_HEIGHT
Definition config.hpp:13
const int LENS_PRESET_COUNT
Definition config.hpp:464
const LensPreset LENS_PRESETS[]
Definition config.hpp:426
int WINDOW_WIDTH
Program window resolution.
Definition config.hpp:13
const char * COMPOSITION_GUIDE_NAMES[]
Definition config.hpp:375
const char * CAM_PROJECTION_NAMES[]
Definition config.hpp:392
int windowed_h
Definition config.hpp:16
const LensPreset & lensPresetAt(int idx)
Maps a combined UI index to the exact preset, regardless of debug flag.
Definition config.hpp:503
glm::vec3 toneMapCPU(glm::vec3 color, int tone_mapping)
CPU-side tone mapping, mirrors display frag's toneMap(), so screenshots match what's shown in render ...
Definition config.hpp:320
const AspectRatioOption ASPECT_RATIOS[]
Definition config.hpp:359
std::string screenshot_msg
Definition config.hpp:308
const int CAM_PROJECTION_COUNT
Definition config.hpp:396
Build-time debug/dev testing toggles.
const int PROJ_FISHEYE_EQUIDISTANT
Definition globals.glsl:94
const int PROJ_FISHEYE_STEREOGRAPHIC
Definition globals.glsl:95
const int PROJ_RECTILINEAR
Definition globals.glsl:93
const int PROJ_FISHEYE_EQUISOLID
Definition globals.glsl:96
const int TM_REINHARD
Definition globals.glsl:139
const int TM_NONE
Definition globals.glsl:138
const int TM_ACES
Definition globals.glsl:140
const int TM_FILMIC
Definition globals.glsl:141
unsigned int GLuint
Definition imgui_impl_opengl3_loader.h:147
int GLint
Definition imgui_impl_opengl3_loader.h:143
Aspect-ratio crop preview/screenshot options.
Definition config.hpp:357
float ratio
Definition config.hpp:357
const char * name
Definition config.hpp:357
Definition config.hpp:290
bool returning_home
Definition config.hpp:300
float yaw
Definition config.hpp:298
glm::vec3 position
Definition config.hpp:291
float mouse_sens
Definition config.hpp:296
float pitch
Definition config.hpp:297
glm::vec3 up
Definition config.hpp:293
glm::vec3 lookat
Definition config.hpp:292
float move_speed
Definition config.hpp:295
bool moving
Definition config.hpp:299
float return_speed
Definition config.hpp:301
Definition config.hpp:407
float distortion_k2
Definition config.hpp:417
float cateye_strength
Definition config.hpp:415
const char * name
Definition config.hpp:408
float anamorphic_squeeze
Definition config.hpp:414
float aperture
Definition config.hpp:411
int aperture_blades
Definition config.hpp:412
float tilt
Definition config.hpp:419
const char * description
Definition config.hpp:409
float distortion_k1
Definition config.hpp:416
float fov
Shown as a tooltip.
Definition config.hpp:410
float blade_rotation
Definition config.hpp:413
int projection_mode
Definition config.hpp:418
float axial_ca
Definition config.hpp:421
float lateral_ca
Definition config.hpp:420
Definition config.hpp:32
float cam_axial_ca
Definition config.hpp:102
float firefly_clamp
Definition config.hpp:137
bool use_nee
Enables Next Event Estimation.
Definition config.hpp:125
float focal_band_debug
Definition config.hpp:72
float rr_max_survival
Definition config.hpp:41
float sun_intensity
Definition config.hpp:148
int scene_preset
Definition config.hpp:33
float ground_albedo
Definition config.hpp:64
int debug_view
0 off, 1 shading normals, 2 geometric normals
Definition config.hpp:36
bool ground_shadow_catcher
Shadow catcher for ground to only have shadows visible.
Definition config.hpp:140
float ground_elevation
Definition config.hpp:63
int force_material
Definition config.hpp:129
int rr_min_bounces
Definition config.hpp:40
int tile_rows
Number of work groups per tile. Less is more safe, but more sync overhead.
Definition config.hpp:122
int depth
Definition config.hpp:38
float cam_focal_distance
Definition config.hpp:68
bool focal_debug
Definition config.hpp:71
glm::vec3 sun_color
Definition config.hpp:149
int moving_resolution
render resolution when moving the camera and while Preview Mode is active
Definition config.hpp:109
bool use_ground_plane
Definition config.hpp:62
float cam_lateral_ca
Lateral (transverse) Chromatic Aberration strength, per-channel shift.
Definition config.hpp:99
int tone_mapping
Definition config.hpp:45
int samples_per_pixel
Definition config.hpp:39
bool lock_preview_res
Definition config.hpp:114
float vignette_strength
Definition config.hpp:49
float sun_angular_radius
Definition config.hpp:150
float auto_exposure_speed
Definition config.hpp:60
float cam_anamorphic_squeeze
Anamorphic sqeeze ratio for oval bokeh.
Definition config.hpp:82
float cam_blade_rotation
Rotates the polygon aperture shape, in degrees.
Definition config.hpp:79
float sun_azimuth
Definition config.hpp:147
float ground_shadow_opacity
Definition config.hpp:142
bool sun_enabled
Definition config.hpp:145
glm::vec3 sunDirection()
Definition config.hpp:152
int cam_projection_mode
Definition config.hpp:93
float exposure_ev
Definition config.hpp:53
float ground_radius
Definition config.hpp:65
float sun_elevation
Definition config.hpp:146
float cam_distortion_k1
Radial lens distortion. Negative K1 = barrel, Positive K1 = pincushion.
Definition config.hpp:88
bool use_textures
Texture enable.
Definition config.hpp:132
float glass_dispersion
Glass dispersion strength (prism effect). Perturbs the IOR of MAT_GLASS.
Definition config.hpp:105
int background
Definition config.hpp:43
bool progressive_refine
controls the progressive resolution scaling up to the original
Definition config.hpp:116
float cam_tilt
Tilt-shift, tilts the focal plane around the camera's local x-axis, in degrees.
Definition config.hpp:96
float cam_distortion_k2
Definition config.hpp:89
float cam_aperture
Definition config.hpp:67
float cam_cateye_strength
Mechanical vignette on the bokeh shape near frame edges, like cat's-eye.
Definition config.hpp:85
int cam_aperture_blades
Definition config.hpp:76
bool tile_dispatch
Definition config.hpp:120
float cam_fov
Definition config.hpp:69
bool auto_exposure_enabled
Runs updateAutoExposure() periodically while true.
Definition config.hpp:56
Definition config.hpp:159
GLint loc_display_cam_fov
Definition config.hpp:196
GLint loc_aabb_min
Definition config.hpp:227
GLuint bvh_ssbo
Definition config.hpp:230
GLint loc_axial_ca
Definition config.hpp:189
bool denoiser_enabled
Definition config.hpp:283
bool denoiser_active
Definition config.hpp:281
int frame_id
Definition config.hpp:177
GLint loc_background
Definition config.hpp:182
GLint grid_loc_far
Definition config.hpp:210
GLint loc_rr_max
Definition config.hpp:181
GLint loc_cam_lookat
Definition config.hpp:184
GLint loc_prev
Definition config.hpp:176
GLint loc_tri_count
Triangle count fixed value passed pre-calculated.
Definition config.hpp:226
GLint loc_spp
Definition config.hpp:181
GLint loc_display_tone_map
Definition config.hpp:204
GLint loc_glass_dispersion
Definition config.hpp:198
GLuint light_ssbo
Definition config.hpp:244
GLint loc_cateye_strength
Definition config.hpp:192
SceneModel current_model
Definition config.hpp:166
double denoise_msg_time
Definition config.hpp:287
GLProgram display_id
Definition config.hpp:173
GLuint denoised_tex
Definition config.hpp:279
bool use_env_map
Definition config.hpp:256
GLint loc_firefly_clamp
Definition config.hpp:240
int cur_f
Definition config.hpp:177
int heatmap_scale
Definition config.hpp:234
GLint loc_focal_band
Definition config.hpp:182
GLint grid_loc_proj
Definition config.hpp:210
GLint loc_rr_min
Definition config.hpp:181
GLProgram grid_id
Definition config.hpp:209
GLint loc_tex_array
Definition config.hpp:261
GLint loc_ground_shadow_catcher
Definition config.hpp:275
GLint grid_loc_cam_pos
Definition config.hpp:210
GLint loc_res
Definition config.hpp:176
GLuint triangle_ssbo
Definition config.hpp:223
GLint loc_cam_pos
Definition config.hpp:184
GLint loc_projection_mode
Definition config.hpp:194
GLint loc_vignette
Definition config.hpp:205
GLint loc_light_count
Definition config.hpp:245
GLuint tex[2]
Definition config.hpp:175
GLint loc_env_map
Definition config.hpp:254
glm::vec3 current_bounds_max
Definition config.hpp:171
GLint loc_ground_elevation
Definition config.hpp:271
GLuint analytic_light_ssbo
Definition config.hpp:246
GLuint fbo[2]
Definition config.hpp:175
int next_denoise_idx
Definition config.hpp:284
int aspect_frame
Definition config.hpp:221
GLProgram pathtr_frag_id
Definition config.hpp:173
glm::vec3 current_bounds_min
Definition config.hpp:170
GLint loc_exposure
Definition config.hpp:206
GLint loc_force_material
Definition config.hpp:267
GLint loc_bvh_root
Definition config.hpp:231
GLint loc_tile_offset
Definition config.hpp:179
GLint loc_tone_map
Definition config.hpp:182
GLint loc_aperture
Definition config.hpp:181
GLint loc_ground_albedo
Definition config.hpp:272
std::string denoise_status_msg
Definition config.hpp:286
int composition_guide
Definition config.hpp:216
GLint loc_cam_fov
Definition config.hpp:181
bool show_grid
Definition config.hpp:208
GLuint tex_array
Definition config.hpp:260
GLint grid_loc_near
Definition config.hpp:210
GLint loc_distortion_k1
Definition config.hpp:193
GLint loc_tex
Definition config.hpp:176
std::vector< int > denoise_checkpoints
Definition config.hpp:285
std::string current_env_map
Definition config.hpp:257
GLint loc_distortion_k2
Definition config.hpp:193
GLint loc_display_render_res
Definition config.hpp:186
GLint loc_depth
Definition config.hpp:181
GLint loc_aabb_max
Definition config.hpp:227
int render_h
Definition config.hpp:160
GLint loc_cam_up
Definition config.hpp:184
GLuint active_id
Definition config.hpp:174
GLint loc_aperture_blades
Definition config.hpp:190
GLint loc_bvh_heatmap_scale
Definition config.hpp:232
int v_sync
Definition config.hpp:162
GLuint tex_normal_array
Definition config.hpp:262
GLint loc_use_nee
Definition config.hpp:237
GLint grid_loc_view
Definition config.hpp:210
GLint loc_use_env_map
Definition config.hpp:255
GLint loc_debug_view
Definition config.hpp:211
GLuint vao
Definition config.hpp:175
GLint loc_bvh_heatmap
Definition config.hpp:232
GLint loc_blade_rotation
Definition config.hpp:190
GLint loc_scene_preset
Definition config.hpp:250
GLint loc_analytic_light_count
Definition config.hpp:247
GLint loc_ground_shadow_opacity
Definition config.hpp:276
uint MAX_SAMPLES
Definition config.hpp:164
GLuint env_map_tex
Definition config.hpp:253
GLint loc_ground_radius
Definition config.hpp:273
GLint loc_focal_dist
Definition config.hpp:182
GLint loc_tex_normal
Definition config.hpp:263
GLint loc_use_ground_plane
Definition config.hpp:270
GLuint material_ssbo
Definition config.hpp:224
GLint loc_cam_tilt
Definition config.hpp:195
int render_w
Definition config.hpp:160
GLint loc_focal_debug
Definition config.hpp:182
int prev_f
Definition config.hpp:177
GLint loc_anamorphic_squeeze
Definition config.hpp:191
GLint loc_lateral_ca
Definition config.hpp:189
GLint loc_frame
Definition config.hpp:176
GLint loc_display_res
Definition config.hpp:187
bool bvh_heatmap
Definition config.hpp:233
GLint loc_use_textures
Definition config.hpp:264
GLProgram pathtr_comp_id
Definition config.hpp:173
Definition config.hpp:23
glm::vec3 position
Definition config.hpp:25
std::atomic< int > tri_count
Definition config.hpp:28
std::string path
Definition config.hpp:24
glm::vec3 rotation
Definition config.hpp:26
std::atomic< int > mat_count
Definition config.hpp:29
glm::vec3 scale
Definition config.hpp:27