logo
pub struct SdfModel(_);
Expand description

An Sdf (signed distance field) that can be rendered directly.

It can also be used as the shape of a bone. Unlike the procedural api, ref counting is not built in, wrap it in an Arc if you need it.

Implementations

Simple Saft Sdf graph rendering. Any parameter can be directly modified by changing the dynamic constants. Changing dynamic_constants will result in full re-meshing.

Renders the Sdf function.

In instance_data you can specify a world transform and other parameters. Changing the shape through dynamic_constants may incur a performance hit due to remeshing.

Trait Implementations

Executes the destructor for this type. 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.