use super::*;
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct RtRng {
#[get(type(copy))]
pub(crate) state: u64,
#[get(type(copy))]
pub(crate) inc: u64,
}
#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
pub struct RtRayCounter {
#[get(type(copy))]
pub(crate) primary_rays: u64,
#[get(type(copy))]
pub(crate) shadow_rays: u64,
#[get(type(copy))]
pub(crate) bounce_rays: u64,
}
#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
pub struct RtSampleOutput {
#[get(type(copy))]
pub(crate) radiance: Vec3,
#[get(type(copy))]
pub(crate) albedo: Vec3,
#[get(type(copy))]
pub(crate) normal: Vec3,
#[get(type(copy))]
pub(crate) depth: f32,
#[get(type(copy))]
pub(crate) hit: bool,
}
#[derive(Clone, Copy, Data, Debug, New, PartialEq)]
pub(crate) struct RtBsdfSample {
#[get(type(copy))]
pub(crate) wi: Vec3,
#[get(type(copy))]
pub(crate) weight: Vec3,
#[get(type(copy))]
pub(crate) pdf: f32,
#[get(type(copy))]
pub(crate) is_delta: bool,
#[get(type(copy))]
pub(crate) is_transmission: bool,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct WhittedIntegrator {
#[get(type(copy))]
pub(crate) max_depth: u32,
#[get(type(copy))]
pub(crate) shadow_samples: u32,
#[get(type(copy))]
pub(crate) ambient_scale: f32,
#[get(type(copy))]
pub(crate) firefly_clamp: f32,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct PathTraceIntegrator {
#[get(type(copy))]
pub(crate) max_bounces: u32,
#[get(type(copy))]
pub(crate) rr_start_bounce: u32,
#[get(type(copy))]
pub(crate) firefly_clamp: f32,
#[get(type(copy))]
pub(crate) enable_nee: bool,
#[get(type(copy))]
pub(crate) enable_mis: bool,
#[get(type(copy))]
pub(crate) use_power_heuristic: bool,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct RtaoIntegrator {
#[get(type(copy))]
pub(crate) sample_count: u32,
#[get(type(copy))]
pub(crate) radius: f32,
#[get(type(copy))]
pub(crate) bias: f32,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct HybridPreviewIntegrator {
#[get(type(copy))]
pub(crate) ambient_scale: f32,
#[get(type(copy))]
pub(crate) shadow_enabled: bool,
#[get(type(copy))]
pub(crate) firefly_clamp: f32,
}