![]() |
Path Tracing
|
#include "gl/program.hpp"#include "debug.hpp"#include <string>#include <vector>#include <filesystem>#include <glm/glm.hpp>#include <GL/glew.h>#include <atomic>#include <glm/gtc/matrix_transform.hpp>

Go to the source code of this file.
Classes | |
| struct | SceneModel |
| struct | RenderConfig |
| struct | Renderer |
| struct | CameraConfig |
| struct | AspectRatioOption |
| Aspect-ratio crop preview/screenshot options. More... | |
| struct | LensPreset |
Functions | |
| 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 output, and not an estimation. | |
| float | camFovCap (int projection_mode) |
| Max FOV for a projection mode. | |
| int | lensPresetCount () |
| Number of presets currently visible depending on debug mode. | |
| const LensPreset & | lensPresetAt (int idx) |
| Maps a combined UI index to the exact preset, regardless of debug flag. | |
|
inline |
Max FOV for a projection mode.
|
inline |
Maps a combined UI index to the exact preset, regardless of debug flag.
|
inline |
Number of presets currently visible depending on debug mode.
|
inline |
CPU-side tone mapping, mirrors display frag's toneMap(), so screenshots match what's shown in render output, and not an estimation.
| const int ASPECT_RATIO_COUNT = sizeof(ASPECT_RATIOS) / sizeof(ASPECT_RATIOS[0]) |
| const AspectRatioOption ASPECT_RATIOS[] |
| const int CAM_PROJECTION_COUNT = sizeof(CAM_PROJECTION_NAMES) / sizeof(CAM_PROJECTION_NAMES[0]) |
|
inline |
Names for the lens projection dropdown, indexed by config.cam_projection_mode
| const int COMPOSITION_GUIDE_COUNT = sizeof(COMPOSITION_GUIDE_NAMES) / sizeof(COMPOSITION_GUIDE_NAMES[0]) |
|
inline |
Names for the compositions dropdown, indexed by renderer.composition_guide
|
inline |
| const int LENS_PRESET_COUNT = sizeof(LENS_PRESETS) / sizeof(LENS_PRESETS[0]) |
| const LensPreset LENS_PRESETS[] |
| const int LENS_TEST_PRESET_COUNT = sizeof(LENS_TEST_PRESETS) / sizeof(LENS_TEST_PRESETS[0]) |
| const LensPreset LENS_TEST_PRESETS[] |
Isolated single-feature tests, dev-only. Each isolates exactly one parameter so its effect is easy to read in isolation - hidden from end users.
| const int PROJ_FISHEYE_EQUIDISTANT = 1 |
| const int PROJ_FISHEYE_EQUISOLID = 3 |
| const int PROJ_FISHEYE_STEREOGRAPHIC = 2 |
| const int PROJ_RECTILINEAR = 0 |
|
inline |
|
inline |
| const int TM_ACES = 2 |
| const int TM_FILMIC = 3 |
| const int TM_NONE = 0 |
| const int TM_REINHARD = 1 |
| const bool USE_COMPUTE_SH = true |
Switches between using fragment or compute shaders for the path tracer
| int WINDOW_HEIGHT = 720 |
|
inline |
Program window resolution.
| int windowed_h = 720 |
|
inline |
|
inline |
| int windowed_y = 100 |