Tachyon (current)  Current Main Branch
Data Fields
tachyonLaunchParams Struct Reference

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_materialmaterials
 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...
 

Detailed Description

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.

Field Documentation

◆ aa_samples

int tachyonLaunchParams::aa_samples

◆ accum_buffer

float4* tachyonLaunchParams::accum_buffer

32-bit FP RGBA accumulation buffer

Definition at line 410 of file TachyonOptiXShaders.h.

Referenced by accumulate_color().

◆ accum_normalize

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().

◆ ao_ambient

float tachyonLaunchParams::ao_ambient

AO ambient factor.

Definition at line 438 of file TachyonOptiXShaders.h.

Referenced by shader_template().

◆ ao_direct

float tachyonLaunchParams::ao_direct

AO direct lighting scaling factor.

Definition at line 439 of file TachyonOptiXShaders.h.

Referenced by shader_template().

◆ ao_lightscale

float tachyonLaunchParams::ao_lightscale

2.0f/float(ao_samples)

Definition at line 437 of file TachyonOptiXShaders.h.

Referenced by shade_ambient_occlusion().

◆ ao_maxdist

float tachyonLaunchParams::ao_maxdist

AO maximum occlusion distance.

Definition at line 440 of file TachyonOptiXShaders.h.

Referenced by shade_ambient_occlusion().

◆ ao_samples

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().

◆ bg_color

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().

◆ bg_color_grad_bot

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().

◆ bg_color_grad_top

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().

◆ bg_grad_botval

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().

◆ bg_grad_invrange

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().

◆ bg_grad_noisemag

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().

◆ bg_grad_topval

float tachyonLaunchParams::bg_grad_topval

miss background gradient top value

Definition at line 423 of file TachyonOptiXShaders.h.

◆ bg_grad_updir

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().

◆ cam

struct { ... } tachyonLaunchParams::cam

◆ clipview_end

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().

◆ clipview_mode

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().

◆ clipview_start

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().

◆ colorspace

int tachyonLaunchParams::colorspace

output colorspace

Definition at line 398 of file TachyonOptiXShaders.h.

Referenced by accumulate_color().

◆ dir_lights

float3* tachyonLaunchParams::dir_lights

list of directional light directions

Definition at line 443 of file TachyonOptiXShaders.h.

Referenced by shader_template().

◆ dof_aperture_rad

float tachyonLaunchParams::dof_aperture_rad

DoF (defocus blur) aperture radius.

Definition at line 455 of file TachyonOptiXShaders.h.

◆ dof_enabled

int tachyonLaunchParams::dof_enabled

DoF (defocus blur) on/off.

Definition at line 454 of file TachyonOptiXShaders.h.

◆ dof_focal_dist

float tachyonLaunchParams::dof_focal_dist

DoF focal plane distance.

Definition at line 456 of file TachyonOptiXShaders.h.

◆ epsilon

float tachyonLaunchParams::epsilon

global epsilon value

Definition at line 431 of file TachyonOptiXShaders.h.

Referenced by __intersection__quadmesh(), and quad_calc_bilinear_coords().

◆ fb_clearall

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().

◆ fog_density

float tachyonLaunchParams::fog_density

exponential fog density

Definition at line 430 of file TachyonOptiXShaders.h.

◆ fog_end

float tachyonLaunchParams::fog_end

radial/linear fog end/max distance

Definition at line 429 of file TachyonOptiXShaders.h.

◆ fog_mode

int tachyonLaunchParams::fog_mode

fog type (or off)

Definition at line 427 of file TachyonOptiXShaders.h.

Referenced by shader_template().

◆ fog_start

float tachyonLaunchParams::fog_start

radial/linear fog start distance

Definition at line 428 of file TachyonOptiXShaders.h.

◆ frame

struct { ... } tachyonLaunchParams::frame

◆ framebuffer

uchar4* tachyonLaunchParams::framebuffer

8-bit unorm RGBA framebuffer

Definition at line 401 of file TachyonOptiXShaders.h.

Referenced by __exception__all(), and accumulate_color().

◆ headlight_mode

int tachyonLaunchParams::headlight_mode

Extra VR camera-located headlight.

Definition at line 441 of file TachyonOptiXShaders.h.

Referenced by shader_template().

◆ lights

struct { ... } tachyonLaunchParams::lights

◆ materials

rt_material* tachyonLaunchParams::materials

◆ max_depth

int tachyonLaunchParams::max_depth

global max ray tracing recursion depth

Definition at line 469 of file TachyonOptiXShaders.h.

Referenced by shader_template().

◆ max_trans

int tachyonLaunchParams::max_trans

◆ num_dir_lights

int tachyonLaunchParams::num_dir_lights

directional light count

Definition at line 442 of file TachyonOptiXShaders.h.

Referenced by shader_template().

◆ num_pos_lights

int tachyonLaunchParams::num_pos_lights

positional light count

Definition at line 444 of file TachyonOptiXShaders.h.

Referenced by shader_template().

◆ pos

float3 tachyonLaunchParams::pos

◆ pos_lights

float3* tachyonLaunchParams::pos_lights

list of positional light positions

Definition at line 445 of file TachyonOptiXShaders.h.

Referenced by shader_template().

◆ scene

struct { ... } tachyonLaunchParams::scene

◆ shadows_enabled

int tachyonLaunchParams::shadows_enabled

global shadow flag

Definition at line 435 of file TachyonOptiXShaders.h.

Referenced by shade_light().

◆ size

int2 tachyonLaunchParams::size

framebuffer size

Definition at line 394 of file TachyonOptiXShaders.h.

Referenced by __exception__all(), TachyonOptiX::print_raystats_info(), and TachyonOptiX::render().

◆ stereo_convergence_dist

float tachyonLaunchParams::stereo_convergence_dist

stereo convergence distance (world)

Definition at line 459 of file TachyonOptiXShaders.h.

◆ stereo_enabled

int tachyonLaunchParams::stereo_enabled

stereo rendering on/off

Definition at line 457 of file TachyonOptiXShaders.h.

◆ stereo_eyesep

float tachyonLaunchParams::stereo_eyesep

◆ subframe_index

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().

◆ tonemap_exposure

float tachyonLaunchParams::tonemap_exposure

tone mapping exposure gain parameter

Definition at line 400 of file TachyonOptiXShaders.h.

Referenced by accumulate_color().

◆ tonemap_mode

int tachyonLaunchParams::tonemap_mode

output tone mapping mode

Definition at line 399 of file TachyonOptiXShaders.h.

Referenced by accumulate_color().

◆ traversable

OptixTraversableHandle tachyonLaunchParams::traversable

◆ U

float3 tachyonLaunchParams::U

camera orthonormal U (right) axis

Definition at line 450 of file TachyonOptiXShaders.h.

Referenced by TachyonOptiX::set_camera_lookat().

◆ update_colorbuffer

int tachyonLaunchParams::update_colorbuffer

accumulation copyout flag

Definition at line 396 of file TachyonOptiXShaders.h.

Referenced by accumulate_color(), and TachyonOptiX::render().

◆ V

float3 tachyonLaunchParams::V

camera orthonormal V (up) axis

Definition at line 451 of file TachyonOptiXShaders.h.

Referenced by TachyonOptiX::set_camera_lookat().

◆ W

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().

◆ zoom

float tachyonLaunchParams::zoom

camera zoom factor

Definition at line 453 of file TachyonOptiXShaders.h.


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