Skip to content

raylib.GenMeshTangents

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Compute mesh tangents

Parameters

Parameter Default Value Note
mesh

Return value

None.

Notes

Example

mesh = raylib.GenMeshSphere(1, 16, 16)
raylib.GenMeshTangents mesh
model = raylib.LoadModelFromMesh(mesh)
// model now has tangent data for normal-map shading
raylib.UnloadModel model

Clone this wiki locally