MeshHelper.CalculateTangentFrames Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)
Generate the tangents and binormals (tangent frames) for each vertex in the mesh.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
- C#
- VB
- F#
public static void CalculateTangentFrames( MeshContent mesh, string textureCoordinateChannelName, string tangentChannelName, string binormalChannelName )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- mesh
-
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.MeshContent
The mesh which will have add tangent and binormal channels added.
- textureCoordinateChannelName
-
Type: System.String
The Vector2 texture coordinate channel used to generate tangent frames.
- tangentChannelName
-
Type: System.String
- binormalChannelName
-
Type: System.String
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop