Skip to content

Commit a65fe59

Browse files
committed
Fix compute_tangents doc links in Mesh::ATTRIBUTE_TANGENT
1 parent 2958051 commit a65fe59

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
@@ -162,9 +162,10 @@ impl Mesh {
162162
pub const ATTRIBUTE_UV_1: MeshVertexAttribute =
163163
MeshVertexAttribute::new("Vertex_Uv_1", 3, VertexFormat::Float32x2);
164164

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

0 commit comments

Comments
 (0)