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
Copy file name to clipboardExpand all lines: crates/bevy_mesh/src/mesh.rs
+14-10Lines changed: 14 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -776,22 +776,26 @@ impl Mesh {
776
776
/// Requires a [`PrimitiveTopology::TriangleList`] topology and the [`Mesh::ATTRIBUTE_POSITION`], [`Mesh::ATTRIBUTE_NORMAL`] and [`Mesh::ATTRIBUTE_UV_0`] attributes set.
/// (Alternatively, you can use [`Mesh::compute_tangents`] to mutate an existing mesh in-place)
819
823
///
820
-
/// See [`TangentStrategy`] for mesh topology and attribute requirements.
824
+
/// See [`TangentCalculationStrategy`] for mesh topology and attribute requirements.
821
825
pubfnwith_computed_tangents(
822
826
mutself,
823
-
tangent_strategy:TangentStrategy,
827
+
strategy:TangentCalculationStrategy,
824
828
) -> Result<Mesh,GenerateTangentsError>{
825
-
self.compute_tangents(tangent_strategy)?;
829
+
self.compute_tangents(strategy)?;
826
830
Ok(self)
827
831
}
828
832
@@ -1272,7 +1276,7 @@ impl core::ops::Mul<Mesh> for Transform {
1272
1276
1273
1277
#[derive(Debug,Copy,Clone,PartialEq,Eq,Default)]
1274
1278
/// The strategy to use when computing mesh tangents. Defaults to `HighQuality`.
1275
-
pubenumTangentStrategy{
1279
+
pubenumTangentCalculationStrategy{
1276
1280
/// Uses the Morten S. Mikkelsen "mikktspace" algorithm. Produces potentially higher quality tangents, but much slower.
1277
1281
///
1278
1282
/// Requires a [`PrimitiveTopology::TriangleList`] topology and the [`Mesh::ATTRIBUTE_POSITION`], [`Mesh::ATTRIBUTE_NORMAL`] and [`Mesh::ATTRIBUTE_UV_0`] attributes set.
0 commit comments