pub struct SdfModel { /* private fields */ }Expand description
SDF component.
Lets you specify the SDF of an entity, used currently for skinning. An SDF shape is specified by
a “saft” program, which can be compiled from a graph of operations such
as sphere, rounded_box, op_union, op_union_smooth, subtract etc.
(Subtract and intersect are not recommended if you want to use skinned
mesh rendering for animation).
Implementations§
source§impl SdfModel
impl SdfModel
sourcepub fn program(&self) -> ValueAccessorDataReadWrite<SdfProgram>
pub fn program(&self) -> ValueAccessorDataReadWrite<SdfProgram>
The SDF program associated with this component.
Trait Implementations§
source§impl ComponentTrait for SdfModel
impl ComponentTrait for SdfModel
source§fn get_type() -> ComponentType
fn get_type() -> ComponentType
The type of the component, as a
ComponentType enum.source§fn from_entity(handle: Entity) -> Self
fn from_entity(handle: Entity) -> Self
Adopt an
Entity, wrap in a component struct.source§fn try_from_entity(handle: Entity) -> Option<Self>
fn try_from_entity(handle: Entity) -> Option<Self>
Try to adopt an
Entity, wrapping it in a component struct.Auto Trait Implementations§
impl RefUnwindSafe for SdfModel
impl Send for SdfModel
impl Sync for SdfModel
impl Unpin for SdfModel
impl UnwindSafe for SdfModel
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