MeshHelper.CalculateNormals Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)
Generates vertex normals by accumulation of triangle face normals.
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 CalculateNormals( MeshContent mesh, bool overwriteExistingNormals )
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 recieve the normals.
- overwriteExistingNormals
-
Type: System.Boolean
Overwrite or skip over geometry with existing normals.
This calls CalculateNormals(GeometryContent, bool) to do the work.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop