Skip to content

Commit 39d4a08

Browse files
committed
Fix compute_tangents doc links in Mesh::ATTRIBUTE_TANGENT
1 parent bfb9176 commit 39d4a08

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/bevy_mesh/src/mesh.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,10 @@ impl Mesh {
163163
pub const ATTRIBUTE_UV_1: MeshVertexAttribute =
164164
MeshVertexAttribute::new("Vertex_Uv_1", 3, VertexFormat::Float32x2);
165165

166-
/// The direction of the vertex tangent. Used for normal mapping.
167-
/// Usually generated with [`generate_tangents`](Mesh::generate_tangents) or
168-
/// [`with_generated_tangents`](Mesh::with_generated_tangents).
166+
/// The direction of the vertex tangent, with the "handedness" (`1` or `-1`) in the `w` column.
167+
/// Used for normal mapping. Usually generated with
168+
/// [`compute_tangents`](Mesh::generate_tangents) or
169+
/// [`with_computed_tangents`](Mesh::with_computed_tangents).
169170
///
170171
/// The format of this attribute is [`VertexFormat::Float32x4`].
171172
pub const ATTRIBUTE_TANGENT: MeshVertexAttribute =

0 commit comments

Comments
 (0)