You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Set the local to world transformation applied to all instances.
71
-
/// This is applied before the transform for each instance.
71
+
/// This transformation is applied last, ie. after the instance transformation defined in [Self::set_instances] and the animation transformation defined by [Self::set_animation].
/// Specifies a function which takes a time parameter as input and returns a transformation that should be applied to this mesh at the given time.
81
80
/// To actually animate this instanced mesh, call [Geometry::animate] at each frame which in turn evaluates the animation function defined by this method.
82
-
/// This transformation is applied first, then the local to world transformation defined by [Self::set_transformation].
81
+
/// This transformation is applied first, then the instance transformation defined in [Self::set_instances], then the local to world transformation defined by [Self::set_transformation].
@@ -307,6 +309,7 @@ impl Geometry for InstancedMesh {
307
309
#[derive(Clone,Debug,Default)]
308
310
pubstructInstances{
309
311
/// The transformations applied to each instance.
312
+
/// This transformation is applied in between the animation transformation defined by [InstancedMesh::set_animation] and the transformation defined in [InstancedMesh::set_transformation].
310
313
pubtransformations:Vec<Mat4>,
311
314
/// The texture transform applied to the uv coordinates of each instance.
0 commit comments