logo
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

The SDF program associated with this component.

Trait Implementations

The type of the component, as a ComponentType enum.

Adopt an Entity, wrap in a component struct.

Get the entity that the component belongs to.

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.