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

#include <config.hpp>

Collaboration diagram for Renderer:

Public Attributes

int render_w = WINDOW_WIDTH
int render_h = WINDOW_HEIGHT
int v_sync = 0
uint MAX_SAMPLES = 50
SceneModel current_model
glm::vec3 current_bounds_min = glm::vec3(-1.0f)
glm::vec3 current_bounds_max = glm::vec3(1.0f)
GLProgram display_id
GLProgram pathtr_frag_id
GLProgram pathtr_comp_id
GLuint active_id
GLuint tex [2]
GLuint fbo [2]
GLuint vao
GLint loc_res
GLint loc_frame
GLint loc_prev
GLint loc_tex
int frame_id = 0
int cur_f = 0
int prev_f = 1
GLint loc_tile_offset
GLint loc_depth
GLint loc_spp
GLint loc_rr_min
GLint loc_rr_max
GLint loc_aperture
GLint loc_cam_fov
GLint loc_focal_dist
GLint loc_focal_debug
GLint loc_focal_band
GLint loc_background
GLint loc_tone_map
GLint loc_cam_pos
GLint loc_cam_lookat
GLint loc_cam_up
GLint loc_display_render_res
GLint loc_display_res
GLint loc_lateral_ca
GLint loc_axial_ca
GLint loc_aperture_blades
GLint loc_blade_rotation
GLint loc_anamorphic_squeeze
GLint loc_cateye_strength
GLint loc_distortion_k1
GLint loc_distortion_k2
GLint loc_projection_mode
GLint loc_cam_tilt
GLint loc_display_cam_fov
GLint loc_glass_dispersion
GLint loc_display_tone_map
GLint loc_vignette
GLint loc_exposure
bool show_grid = false
GLProgram grid_id
GLint grid_loc_view
GLint grid_loc_proj
GLint grid_loc_near
GLint grid_loc_far
GLint grid_loc_cam_pos
GLint loc_debug_view = -1
int composition_guide = 0
int aspect_frame = 0
GLuint triangle_ssbo
GLuint material_ssbo
GLint loc_tri_count
 Triangle count fixed value passed pre-calculated.
GLint loc_aabb_min
GLint loc_aabb_max
GLuint bvh_ssbo
GLint loc_bvh_root
GLint loc_bvh_heatmap
GLint loc_bvh_heatmap_scale
bool bvh_heatmap = false
int heatmap_scale = 30
GLint loc_use_nee
GLint loc_firefly_clamp
GLuint light_ssbo
GLint loc_light_count
GLuint analytic_light_ssbo
GLint loc_analytic_light_count
GLint loc_scene_preset
GLuint env_map_tex = 0
GLint loc_env_map
GLint loc_use_env_map
bool use_env_map = false
std::string current_env_map = ""
GLuint tex_array = 0
GLint loc_tex_array
GLuint tex_normal_array = 0
GLint loc_tex_normal
GLint loc_use_textures
GLint loc_force_material
GLint loc_use_ground_plane
GLint loc_ground_elevation
GLint loc_ground_albedo
GLint loc_ground_radius
GLint loc_ground_shadow_catcher
GLint loc_ground_shadow_opacity
GLuint denoised_tex = 0
bool denoiser_active = false
bool denoiser_enabled = true
int next_denoise_idx = 0
std::vector< int > denoise_checkpoints
std::string denoise_status_msg = ""
double denoise_msg_time = 0.0

Member Data Documentation

◆ active_id

GLuint Renderer::active_id

◆ analytic_light_ssbo

GLuint Renderer::analytic_light_ssbo

◆ aspect_frame

int Renderer::aspect_frame = 0

Aspect-ratio crop preview mask on top of the render

Note
index into ASPECT_RATIOS; 0=off
See also
drawCompositionGuides

◆ bvh_heatmap

bool Renderer::bvh_heatmap = false

◆ bvh_ssbo

GLuint Renderer::bvh_ssbo

◆ composition_guide

int Renderer::composition_guide = 0

Photo framing overlay (viewfinder, screen-space only)

Note
0=off, 1=thirds, 2=golden ration, 3=center cross, 4=diagonal
See also
drawCompositionGuides

◆ cur_f

int Renderer::cur_f = 0

◆ current_bounds_max

glm::vec3 Renderer::current_bounds_max = glm::vec3(1.0f)

◆ current_bounds_min

glm::vec3 Renderer::current_bounds_min = glm::vec3(-1.0f)

Loaded model's world-space bounds, used for zoom-to-fit. Defines a small box around the origin fitting the model.

◆ current_env_map

std::string Renderer::current_env_map = ""

◆ current_model

SceneModel Renderer::current_model

◆ denoise_checkpoints

std::vector<int> Renderer::denoise_checkpoints

◆ denoise_msg_time

double Renderer::denoise_msg_time = 0.0

◆ denoise_status_msg

std::string Renderer::denoise_status_msg = ""

◆ denoised_tex

GLuint Renderer::denoised_tex = 0

◆ denoiser_active

bool Renderer::denoiser_active = false

◆ denoiser_enabled

bool Renderer::denoiser_enabled = true

◆ display_id

GLProgram Renderer::display_id

◆ env_map_tex

GLuint Renderer::env_map_tex = 0

◆ fbo

GLuint Renderer::fbo[2]

◆ frame_id

int Renderer::frame_id = 0

◆ grid_id

GLProgram Renderer::grid_id

◆ grid_loc_cam_pos

GLint Renderer::grid_loc_cam_pos

◆ grid_loc_far

GLint Renderer::grid_loc_far

◆ grid_loc_near

GLint Renderer::grid_loc_near

◆ grid_loc_proj

GLint Renderer::grid_loc_proj

◆ grid_loc_view

GLint Renderer::grid_loc_view

◆ heatmap_scale

int Renderer::heatmap_scale = 30

◆ light_ssbo

GLuint Renderer::light_ssbo

◆ loc_aabb_max

GLint Renderer::loc_aabb_max

◆ loc_aabb_min

GLint Renderer::loc_aabb_min

◆ loc_analytic_light_count

GLint Renderer::loc_analytic_light_count

◆ loc_anamorphic_squeeze

GLint Renderer::loc_anamorphic_squeeze

◆ loc_aperture

GLint Renderer::loc_aperture

◆ loc_aperture_blades

GLint Renderer::loc_aperture_blades

◆ loc_axial_ca

GLint Renderer::loc_axial_ca

◆ loc_background

GLint Renderer::loc_background

◆ loc_blade_rotation

GLint Renderer::loc_blade_rotation

◆ loc_bvh_heatmap

GLint Renderer::loc_bvh_heatmap

◆ loc_bvh_heatmap_scale

GLint Renderer::loc_bvh_heatmap_scale

◆ loc_bvh_root

GLint Renderer::loc_bvh_root

◆ loc_cam_fov

GLint Renderer::loc_cam_fov

◆ loc_cam_lookat

GLint Renderer::loc_cam_lookat

◆ loc_cam_pos

GLint Renderer::loc_cam_pos

◆ loc_cam_tilt

GLint Renderer::loc_cam_tilt

◆ loc_cam_up

GLint Renderer::loc_cam_up

◆ loc_cateye_strength

GLint Renderer::loc_cateye_strength

◆ loc_debug_view

GLint Renderer::loc_debug_view = -1

◆ loc_depth

GLint Renderer::loc_depth

◆ loc_display_cam_fov

GLint Renderer::loc_display_cam_fov

◆ loc_display_render_res

GLint Renderer::loc_display_render_res

◆ loc_display_res

GLint Renderer::loc_display_res

◆ loc_display_tone_map

GLint Renderer::loc_display_tone_map

TONE_MAPPING is declared separately here because it must be uploaded to renderer.display_id specifically, toneMap() only runs in display.frag Uploading it to the path-trace program (as loc_tone_map) has no effect on what is shown, since the program never calls toneMap().

◆ loc_distortion_k1

GLint Renderer::loc_distortion_k1

◆ loc_distortion_k2

GLint Renderer::loc_distortion_k2

◆ loc_env_map

GLint Renderer::loc_env_map

◆ loc_exposure

GLint Renderer::loc_exposure

◆ loc_firefly_clamp

GLint Renderer::loc_firefly_clamp

◆ loc_focal_band

GLint Renderer::loc_focal_band

◆ loc_focal_debug

GLint Renderer::loc_focal_debug

◆ loc_focal_dist

GLint Renderer::loc_focal_dist

◆ loc_force_material

GLint Renderer::loc_force_material

◆ loc_frame

GLint Renderer::loc_frame

◆ loc_glass_dispersion

GLint Renderer::loc_glass_dispersion

◆ loc_ground_albedo

GLint Renderer::loc_ground_albedo

◆ loc_ground_elevation

GLint Renderer::loc_ground_elevation

◆ loc_ground_radius

GLint Renderer::loc_ground_radius

◆ loc_ground_shadow_catcher

GLint Renderer::loc_ground_shadow_catcher

◆ loc_ground_shadow_opacity

GLint Renderer::loc_ground_shadow_opacity

◆ loc_lateral_ca

GLint Renderer::loc_lateral_ca

◆ loc_light_count

GLint Renderer::loc_light_count

◆ loc_prev

GLint Renderer::loc_prev

◆ loc_projection_mode

GLint Renderer::loc_projection_mode

◆ loc_res

GLint Renderer::loc_res

◆ loc_rr_max

GLint Renderer::loc_rr_max

◆ loc_rr_min

GLint Renderer::loc_rr_min

◆ loc_scene_preset

GLint Renderer::loc_scene_preset

◆ loc_spp

GLint Renderer::loc_spp

◆ loc_tex

GLint Renderer::loc_tex

◆ loc_tex_array

GLint Renderer::loc_tex_array

◆ loc_tex_normal

GLint Renderer::loc_tex_normal

◆ loc_tile_offset

GLint Renderer::loc_tile_offset

◆ loc_tone_map

GLint Renderer::loc_tone_map

◆ loc_tri_count

GLint Renderer::loc_tri_count

Triangle count fixed value passed pre-calculated.

◆ loc_use_env_map

GLint Renderer::loc_use_env_map

◆ loc_use_ground_plane

GLint Renderer::loc_use_ground_plane

◆ loc_use_nee

GLint Renderer::loc_use_nee

◆ loc_use_textures

GLint Renderer::loc_use_textures

◆ loc_vignette

GLint Renderer::loc_vignette

◆ material_ssbo

GLuint Renderer::material_ssbo

◆ MAX_SAMPLES

uint Renderer::MAX_SAMPLES = 50

◆ next_denoise_idx

int Renderer::next_denoise_idx = 0

◆ pathtr_comp_id

GLProgram Renderer::pathtr_comp_id

◆ pathtr_frag_id

GLProgram Renderer::pathtr_frag_id

◆ prev_f

int Renderer::prev_f = 1

◆ render_h

int Renderer::render_h = WINDOW_HEIGHT

◆ render_w

int Renderer::render_w = WINDOW_WIDTH

◆ show_grid

bool Renderer::show_grid = false

◆ tex

GLuint Renderer::tex[2]

◆ tex_array

GLuint Renderer::tex_array = 0

◆ tex_normal_array

GLuint Renderer::tex_normal_array = 0

◆ triangle_ssbo

GLuint Renderer::triangle_ssbo

◆ use_env_map

bool Renderer::use_env_map = false

◆ v_sync

int Renderer::v_sync = 0

◆ vao

GLuint Renderer::vao

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