pub struct RtHit { /* private fields */ }Expand description
World-space ray intersection record unified across triangles, analytic primitives, and SDF sphere tracing.
Implementations§
Source§impl RtHit
Implements impl #impl_generics #name #ty_generics #where_clause.
impl RtHit
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_distance(&self) -> f32
pub fn get_mut_distance(&mut self) -> &mut f32
pub fn set_distance(&mut self, val: f32) -> &mut Self
pub fn get_point(&self) -> Vec3
pub fn get_mut_point(&mut self) -> &mut Vec3
pub fn set_point(&mut self, val: Vec3) -> &mut Self
pub fn get_geometric_normal(&self) -> Vec3
pub fn get_mut_geometric_normal(&mut self) -> &mut Vec3
pub fn set_geometric_normal(&mut self, val: Vec3) -> &mut Self
pub fn get_shading_normal(&self) -> Vec3
pub fn get_mut_shading_normal(&mut self) -> &mut Vec3
pub fn set_shading_normal(&mut self, val: Vec3) -> &mut Self
pub fn get_uv(&self) -> Vec2
pub fn get_mut_uv(&mut self) -> &mut Vec2
pub fn set_uv(&mut self, val: Vec2) -> &mut Self
pub fn get_material_id(&self) -> u32
pub fn get_mut_material_id(&mut self) -> &mut u32
pub fn set_material_id(&mut self, val: u32) -> &mut Self
pub fn get_instance_id(&self) -> u32
pub fn get_mut_instance_id(&mut self) -> &mut u32
pub fn set_instance_id(&mut self, val: u32) -> &mut Self
pub fn get_primitive_index(&self) -> u32
pub fn get_mut_primitive_index(&mut self) -> &mut u32
pub fn set_primitive_index(&mut self, val: u32) -> &mut Self
pub fn get_front_face(&self) -> bool
pub fn get_mut_front_face(&mut self) -> &mut bool
pub fn set_front_face(&mut self, val: bool) -> &mut Self
Trait Implementations§
impl Copy for RtHit
impl StructuralPartialEq for RtHit
Auto Trait Implementations§
impl Forget for RtHit
impl Freeze for RtHit
impl Move for RtHit
impl RefUnwindSafe for RtHit
impl Send for RtHit
impl Sync for RtHit
impl Unpin for RtHit
impl UnsafeUnpin for RtHit
impl UnwindSafe for RtHit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more