Tachyon (current)
Current Main Branch
|
Tachyon OptiX global launch parameter structure containing the active camera, framebuffer, materials, and any global scene parameters required for shading. More...
#include <TachyonOptiXShaders.h>
Data Fields | |
struct { | |
int2 size | |
framebuffer size More... | |
int subframe_index | |
accumulation subframe index More... | |
int update_colorbuffer | |
accumulation copyout flag More... | |
int fb_clearall | |
clear/overwrite all FB components More... | |
int colorspace | |
output colorspace More... | |
int tonemap_mode | |
output tone mapping mode More... | |
float tonemap_exposure | |
tone mapping exposure gain parameter More... | |
uchar4 * framebuffer | |
8-bit unorm RGBA framebuffer More... | |
float accum_normalize | |
precalc 1.0f / subframe_index More... | |
float4 * accum_buffer | |
32-bit FP RGBA accumulation buffer More... | |
} | frame |
struct { | |
float3 bg_color | |
miss background color More... | |
float3 bg_color_grad_top | |
miss background gradient (top) More... | |
float3 bg_color_grad_bot | |
miss background gradient (bottom) More... | |
float3 bg_grad_updir | |
miss background gradient up direction More... | |
float bg_grad_topval | |
miss background gradient top value More... | |
float bg_grad_botval | |
miss background gradient bottom value More... | |
float bg_grad_invrange | |
miss background gradient inverse range More... | |
float bg_grad_noisemag | |
miss background gradient noise magnitude More... | |
int fog_mode | |
fog type (or off) More... | |
float fog_start | |
radial/linear fog start distance More... | |
float fog_end | |
radial/linear fog end/max distance More... | |
float fog_density | |
exponential fog density More... | |
float epsilon | |
global epsilon value More... | |
} | scene |
struct { | |
int shadows_enabled | |
global shadow flag More... | |
int ao_samples | |
number of AO samples per AA ray More... | |
float ao_lightscale | |
2.0f/float(ao_samples) More... | |
float ao_ambient | |
AO ambient factor. More... | |
float ao_direct | |
AO direct lighting scaling factor. More... | |
float ao_maxdist | |
AO maximum occlusion distance. More... | |
int headlight_mode | |
Extra VR camera-located headlight. More... | |
int num_dir_lights | |
directional light count More... | |
float3 * dir_lights | |
list of directional light directions More... | |
int num_pos_lights | |
positional light count More... | |
float3 * pos_lights | |
list of positional light positions More... | |
} | lights |
struct { | |
float3 pos | |
camera position More... | |
float3 U | |
camera orthonormal U (right) axis More... | |
float3 V | |
camera orthonormal V (up) axis More... | |
float3 W | |
camera orthonormal W (view) axis More... | |
float zoom | |
camera zoom factor More... | |
int dof_enabled | |
DoF (defocus blur) on/off. More... | |
float dof_aperture_rad | |
DoF (defocus blur) aperture radius. More... | |
float dof_focal_dist | |
DoF focal plane distance. More... | |
int stereo_enabled | |
stereo rendering on/off More... | |
float stereo_eyesep | |
stereo eye separation, in world coords More... | |
float stereo_convergence_dist | |
stereo convergence distance (world) More... | |
} | cam |
int | clipview_mode |
VR clipping view on/off. More... | |
float | clipview_start |
clipping sphere/plane start coord More... | |
float | clipview_end |
clipping sphere/plane end coord More... | |
rt_material * | materials |
device memory material array More... | |
int | max_depth |
global max ray tracing recursion depth More... | |
int | max_trans |
max transparent surface crossing count More... | |
int | aa_samples |
AA samples per launch. More... | |
OptixTraversableHandle | traversable |
global OptiX scene traversable handle More... | |
Tachyon OptiX global launch parameter structure containing the active camera, framebuffer, materials, and any global scene parameters required for shading.
Definition at line 392 of file TachyonOptiXShaders.h.
int tachyonLaunchParams::aa_samples |
AA samples per launch.
Definition at line 471 of file TachyonOptiXShaders.h.
Referenced by TachyonOptiX::render(), tachyon_camera_cubemap_general(), tachyon_camera_dome_general(), tachyon_camera_equirectangular_general(), tachyon_camera_octahedral_general(), tachyon_camera_oculus_rift_general(), tachyon_camera_orthographic_general(), and tachyon_camera_perspective_general().
float4* tachyonLaunchParams::accum_buffer |
32-bit FP RGBA accumulation buffer
Definition at line 410 of file TachyonOptiXShaders.h.
Referenced by accumulate_color().
float tachyonLaunchParams::accum_normalize |
precalc 1.0f / subframe_index
Definition at line 409 of file TachyonOptiXShaders.h.
Referenced by accumulate_color(), TachyonOptiX::framebuffer_clear(), and TachyonOptiX::render().
float tachyonLaunchParams::ao_ambient |
AO ambient factor.
Definition at line 438 of file TachyonOptiXShaders.h.
Referenced by shader_template().
float tachyonLaunchParams::ao_direct |
AO direct lighting scaling factor.
Definition at line 439 of file TachyonOptiXShaders.h.
Referenced by shader_template().
float tachyonLaunchParams::ao_lightscale |
2.0f/float(ao_samples)
Definition at line 437 of file TachyonOptiXShaders.h.
Referenced by shade_ambient_occlusion().
float tachyonLaunchParams::ao_maxdist |
AO maximum occlusion distance.
Definition at line 440 of file TachyonOptiXShaders.h.
Referenced by shade_ambient_occlusion().
int tachyonLaunchParams::ao_samples |
number of AO samples per AA ray
Definition at line 436 of file TachyonOptiXShaders.h.
Referenced by shade_ambient_occlusion(), and shader_template().
float3 tachyonLaunchParams::bg_color |
miss background color
Definition at line 419 of file TachyonOptiXShaders.h.
Referenced by __miss__radiance_solid_bg(), fog_color(), and shader_template().
float3 tachyonLaunchParams::bg_color_grad_bot |
miss background gradient (bottom)
Definition at line 421 of file TachyonOptiXShaders.h.
Referenced by __miss__radiance_gradient_bg_sky_plane(), and __miss__radiance_gradient_bg_sky_sphere().
float3 tachyonLaunchParams::bg_color_grad_top |
miss background gradient (top)
Definition at line 420 of file TachyonOptiXShaders.h.
Referenced by __miss__radiance_gradient_bg_sky_plane(), and __miss__radiance_gradient_bg_sky_sphere().
float tachyonLaunchParams::bg_grad_botval |
miss background gradient bottom value
Definition at line 424 of file TachyonOptiXShaders.h.
Referenced by __miss__radiance_gradient_bg_sky_plane(), and __miss__radiance_gradient_bg_sky_sphere().
float tachyonLaunchParams::bg_grad_invrange |
miss background gradient inverse range
Definition at line 425 of file TachyonOptiXShaders.h.
Referenced by __miss__radiance_gradient_bg_sky_plane(), and __miss__radiance_gradient_bg_sky_sphere().
float tachyonLaunchParams::bg_grad_noisemag |
miss background gradient noise magnitude
Definition at line 426 of file TachyonOptiXShaders.h.
Referenced by __miss__radiance_gradient_bg_sky_plane(), and __miss__radiance_gradient_bg_sky_sphere().
float tachyonLaunchParams::bg_grad_topval |
miss background gradient top value
Definition at line 423 of file TachyonOptiXShaders.h.
float3 tachyonLaunchParams::bg_grad_updir |
miss background gradient up direction
Definition at line 422 of file TachyonOptiXShaders.h.
Referenced by __miss__radiance_gradient_bg_sky_plane(), and __miss__radiance_gradient_bg_sky_sphere().
struct { ... } tachyonLaunchParams::cam |
Referenced by any_hit_shadow_clip_sphere(), fog_coord(), TachyonOptiX::set_camera_lookat(), shader_template(), tachyon_camera_cubemap_general(), tachyon_camera_dome_general(), tachyon_camera_equirectangular_general(), tachyon_camera_octahedral_general(), tachyon_camera_oculus_rift_general(), tachyon_camera_orthographic_general(), and tachyon_camera_perspective_general().
float tachyonLaunchParams::clipview_end |
clipping sphere/plane end coord
Definition at line 465 of file TachyonOptiXShaders.h.
Referenced by any_hit_shadow_clip_sphere(), and shader_template().
int tachyonLaunchParams::clipview_mode |
VR clipping view on/off.
Definition at line 463 of file TachyonOptiXShaders.h.
Referenced by any_hit_shadow_clip_sphere(), and shader_template().
float tachyonLaunchParams::clipview_start |
clipping sphere/plane start coord
Definition at line 464 of file TachyonOptiXShaders.h.
Referenced by any_hit_shadow_clip_sphere(), and shader_template().
int tachyonLaunchParams::colorspace |
output colorspace
Definition at line 398 of file TachyonOptiXShaders.h.
Referenced by accumulate_color().
float3* tachyonLaunchParams::dir_lights |
list of directional light directions
Definition at line 443 of file TachyonOptiXShaders.h.
Referenced by shader_template().
float tachyonLaunchParams::dof_aperture_rad |
DoF (defocus blur) aperture radius.
Definition at line 455 of file TachyonOptiXShaders.h.
int tachyonLaunchParams::dof_enabled |
DoF (defocus blur) on/off.
Definition at line 454 of file TachyonOptiXShaders.h.
float tachyonLaunchParams::dof_focal_dist |
DoF focal plane distance.
Definition at line 456 of file TachyonOptiXShaders.h.
float tachyonLaunchParams::epsilon |
global epsilon value
Definition at line 431 of file TachyonOptiXShaders.h.
Referenced by __intersection__quadmesh(), and quad_calc_bilinear_coords().
int tachyonLaunchParams::fb_clearall |
clear/overwrite all FB components
Definition at line 397 of file TachyonOptiXShaders.h.
Referenced by accumulate_color(), TachyonOptiX::framebuffer_clear(), and TachyonOptiX::render().
float tachyonLaunchParams::fog_density |
exponential fog density
Definition at line 430 of file TachyonOptiXShaders.h.
float tachyonLaunchParams::fog_end |
radial/linear fog end/max distance
Definition at line 429 of file TachyonOptiXShaders.h.
int tachyonLaunchParams::fog_mode |
fog type (or off)
Definition at line 427 of file TachyonOptiXShaders.h.
Referenced by shader_template().
float tachyonLaunchParams::fog_start |
radial/linear fog start distance
Definition at line 428 of file TachyonOptiXShaders.h.
struct { ... } tachyonLaunchParams::frame |
Referenced by __anyhit__shadow_transmission(), __exception__all(), __miss__radiance_gradient_bg_sky_plane(), __miss__radiance_gradient_bg_sky_sphere(), __miss__radiance_solid_bg(), accumulate_color(), any_hit_shadow_clip_sphere(), TachyonOptiX::framebuffer_clear(), TachyonOptiX::print_raystats_info(), TachyonOptiX::render(), shade_light(), shader_template(), and subframe_count().
uchar4* tachyonLaunchParams::framebuffer |
8-bit unorm RGBA framebuffer
Definition at line 401 of file TachyonOptiXShaders.h.
Referenced by __exception__all(), and accumulate_color().
int tachyonLaunchParams::headlight_mode |
Extra VR camera-located headlight.
Definition at line 441 of file TachyonOptiXShaders.h.
Referenced by shader_template().
struct { ... } tachyonLaunchParams::lights |
Referenced by shade_ambient_occlusion(), shade_light(), and shader_template().
rt_material* tachyonLaunchParams::materials |
device memory material array
Definition at line 467 of file TachyonOptiXShaders.h.
Referenced by __anyhit__shadow_transmission(), __closesthit__radiance_general(), any_hit_shadow_clip_sphere(), and get_shadevars_trimesh().
int tachyonLaunchParams::max_depth |
global max ray tracing recursion depth
Definition at line 469 of file TachyonOptiXShaders.h.
Referenced by shader_template().
int tachyonLaunchParams::max_trans |
max transparent surface crossing count
Definition at line 470 of file TachyonOptiXShaders.h.
Referenced by tachyon_camera_cubemap_general(), tachyon_camera_dome_general(), tachyon_camera_equirectangular_general(), tachyon_camera_octahedral_general(), tachyon_camera_oculus_rift_general(), tachyon_camera_orthographic_general(), and tachyon_camera_perspective_general().
int tachyonLaunchParams::num_dir_lights |
directional light count
Definition at line 442 of file TachyonOptiXShaders.h.
Referenced by shader_template().
int tachyonLaunchParams::num_pos_lights |
positional light count
Definition at line 444 of file TachyonOptiXShaders.h.
Referenced by shader_template().
float3 tachyonLaunchParams::pos |
camera position
Definition at line 449 of file TachyonOptiXShaders.h.
Referenced by any_hit_shadow_clip_sphere(), TachyonOptiX::set_camera_lookat(), shader_template(), tachyon_camera_orthographic_general(), and tachyon_camera_perspective_general().
float3* tachyonLaunchParams::pos_lights |
list of positional light positions
Definition at line 445 of file TachyonOptiXShaders.h.
Referenced by shader_template().
struct { ... } tachyonLaunchParams::scene |
int tachyonLaunchParams::shadows_enabled |
global shadow flag
Definition at line 435 of file TachyonOptiXShaders.h.
Referenced by shade_light().
int2 tachyonLaunchParams::size |
framebuffer size
Definition at line 394 of file TachyonOptiXShaders.h.
Referenced by __exception__all(), TachyonOptiX::print_raystats_info(), and TachyonOptiX::render().
float tachyonLaunchParams::stereo_convergence_dist |
stereo convergence distance (world)
Definition at line 459 of file TachyonOptiXShaders.h.
int tachyonLaunchParams::stereo_enabled |
stereo rendering on/off
Definition at line 457 of file TachyonOptiXShaders.h.
float tachyonLaunchParams::stereo_eyesep |
stereo eye separation, in world coords
Definition at line 458 of file TachyonOptiXShaders.h.
Referenced by tachyon_camera_dome_general(), tachyon_camera_equirectangular_general(), tachyon_camera_octahedral_general(), and tachyon_camera_oculus_rift_general().
int tachyonLaunchParams::subframe_index |
accumulation subframe index
Definition at line 395 of file TachyonOptiXShaders.h.
Referenced by TachyonOptiX::framebuffer_clear(), TachyonOptiX::render(), and subframe_count().
float tachyonLaunchParams::tonemap_exposure |
tone mapping exposure gain parameter
Definition at line 400 of file TachyonOptiXShaders.h.
Referenced by accumulate_color().
int tachyonLaunchParams::tonemap_mode |
output tone mapping mode
Definition at line 399 of file TachyonOptiXShaders.h.
Referenced by accumulate_color().
OptixTraversableHandle tachyonLaunchParams::traversable |
global OptiX scene traversable handle
Definition at line 473 of file TachyonOptiXShaders.h.
Referenced by shade_ambient_occlusion(), shade_light(), shader_template(), tachyon_camera_cubemap_general(), tachyon_camera_dome_general(), tachyon_camera_equirectangular_general(), tachyon_camera_octahedral_general(), tachyon_camera_oculus_rift_general(), tachyon_camera_orthographic_general(), and tachyon_camera_perspective_general().
float3 tachyonLaunchParams::U |
camera orthonormal U (right) axis
Definition at line 450 of file TachyonOptiXShaders.h.
Referenced by TachyonOptiX::set_camera_lookat().
int tachyonLaunchParams::update_colorbuffer |
accumulation copyout flag
Definition at line 396 of file TachyonOptiXShaders.h.
Referenced by accumulate_color(), and TachyonOptiX::render().
float3 tachyonLaunchParams::V |
camera orthonormal V (up) axis
Definition at line 451 of file TachyonOptiXShaders.h.
Referenced by TachyonOptiX::set_camera_lookat().
float3 tachyonLaunchParams::W |
camera orthonormal W (view) axis
Definition at line 452 of file TachyonOptiXShaders.h.
Referenced by fog_coord(), and TachyonOptiX::set_camera_lookat().
float tachyonLaunchParams::zoom |
camera zoom factor
Definition at line 453 of file TachyonOptiXShaders.h.