use super::*;
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum RtMaterialKind {
#[default]
Diffuse,
Metal,
Dielectric,
Principled,
Emissive,
}
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RtLightKind {
Directional {
direction: Vec3,
angular_radius_rad: f32,
},
Point {
position: Vec3,
radius: f32,
},
Spot {
position: Vec3,
direction: Vec3,
inner_cos: f32,
outer_cos: f32,
radius: f32,
},
RectArea {
position: Vec3,
right: Vec3,
up: Vec3,
normal: Vec3,
width: f32,
height: f32,
two_sided: bool,
},
DiskArea {
position: Vec3,
right: Vec3,
up: Vec3,
normal: Vec3,
radius: f32,
two_sided: bool,
},
}
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RtEnvironment {
Black,
Solid(Vec3),
GradientSky {
zenith: Vec3,
horizon: Vec3,
ground: Vec3,
sun_dir: Vec3,
sun_color: Vec3,
sun_angular_radius_rad: f32,
},
}