pub struct RtParamsInputs {
pub fov_y_radians: f32,
pub aspect: f32,
pub inv_view_rot: [[f32; 4]; 4],
pub cam_pos: [f32; 3],
pub sun_dir: [f32; 3],
pub sun_color: [f32; 3],
pub prefilter_mip_count: f32,
pub sky_rot: [[f32; 4]; 3],
}Expand description
Per-frame camera + sun inputs for building the RT-reflection GPU uniform.
fov_y_radians / aspect give the view-ray scale used to rebuild a
view-space position from the SSR pre-pass G-buffer. inv_view_rot is the
view-to-world rotation (the transpose of the view matrix’s orthonormal 3x3)
and cam_pos the world camera position; together they form the
camera-to-world transform that lifts the reconstructed hit point + normal
into the BVH’s world space. sun_dir is the world-space unit direction
toward the sun and sun_color its radiance; prefilter_mip_count is the IBL
cubemap mip count (0 = no IBL) for the miss fallback.
Fields§
§fov_y_radians: f32Vertical field of view in radians.
aspect: f32Viewport aspect ratio, width over height.
inv_view_rot: [[f32; 4]; 4]View-to-world rotation, column-major.
cam_pos: [f32; 3]World-space camera position.
sun_dir: [f32; 3]World-space unit direction toward the sun.
sun_color: [f32; 3]Sun radiance, linear RGB.
prefilter_mip_count: f32IBL cubemap mip count; 0 when there is no IBL fallback.
sky_rot: [[f32; 4]; 3]Rows of the sky’s inverse rotation, so a missed ray samples the same oriented sky the main pass shows. Identity when the sky does not turn.
Trait Implementations§
Source§impl Clone for RtParamsInputs
impl Clone for RtParamsInputs
Source§fn clone(&self) -> RtParamsInputs
fn clone(&self) -> RtParamsInputs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more