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
sourceimpl SdfModel
impl SdfModel
sourcepub fn program(&self) -> ValueAccessorDataReadWrite<SdfProgram>
pub fn program(&self) -> ValueAccessorDataReadWrite<SdfProgram>
The SDF program associated with this component.
Trait Implementations
sourceimpl ComponentTrait for SdfModel
impl ComponentTrait for SdfModel
sourcefn get_type() -> ComponentType
fn get_type() -> ComponentType
The type of the component, as a ComponentType
enum.
sourcefn from_entity(handle: Entity) -> Self
fn from_entity(handle: Entity) -> Self
Adopt an Entity
, wrap 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more