pub struct ShapeEntity {
pub params: Shape,
pub transform: Mat4,
pub reverse_orientation: bool,
pub material_index: Option<usize>,
pub area_light_index: Option<usize>,
}Fields§
§params: Shape§transform: Mat4If shape is a part of Object, transform matrix defines the transformation from object space to the instance’s coordinate space.
reverse_orientation: bool§material_index: Option<usize>§area_light_index: Option<usize>Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapeEntity
impl RefUnwindSafe for ShapeEntity
impl Send for ShapeEntity
impl Sync for ShapeEntity
impl Unpin for ShapeEntity
impl UnwindSafe for ShapeEntity
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