Click or drag to resize
Ab4d.SharpEngine logo

MeshUtilsCalculateNormals(PositionNormalTextureVertex, Int32) Method

CalculateNormals method calculates normals for the specified vertexBuffer (PositionNormalTexture array) and triangle indices array. Normal values are written to the vertexBuffer. Normals are always normalized.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9208+3b2441d6a11f923f2600f40f4296bdc3d8b46035
Syntax
C#
public static void CalculateNormals(
	PositionNormalTextureVertex[] vertexBuffer,
	int[] indices
)

Parameters

vertexBuffer  PositionNormalTextureVertex
array of PositionNormalTexture that represents a vertex buffer
indices  Int32
triangle indices
See Also