Provides helper methods for optimizing Meshes, calculating normal vectors, adding textures, etc.
More...
|
static void | Optimize (Mesh mesh) |
| Performs an in-place optimization of a Mesh. More...
|
|
static void | GenerateNormals (Device device, ref Mesh mesh) |
| Generate normals if not present and convert into TangentVertex format for shaders. Tangent data is left empty More...
|
|
static void | GenerateNormalsAndTangents (Device device, ref Mesh mesh, bool weldVertexes) |
| Generate normals and tangents if not present and convert into TangentVertex format for shaders. More...
|
|
Provides helper methods for optimizing Meshes, calculating normal vectors, adding textures, etc.
◆ GenerateNormals()
static void OmegaEngine.Graphics.MeshHelper.GenerateNormals |
( |
Device |
device, |
|
|
ref Mesh |
mesh |
|
) |
| |
|
inlinestatic |
Generate normals if not present and convert into TangentVertex format for shaders. Tangent data is left empty
- Parameters
-
device | The Device containing the mesh |
mesh | The mesh to be manipulated |
◆ GenerateNormalsAndTangents()
static void OmegaEngine.Graphics.MeshHelper.GenerateNormalsAndTangents |
( |
Device |
device, |
|
|
ref Mesh |
mesh, |
|
|
bool |
weldVertexes |
|
) |
| |
|
inlinestatic |
Generate normals and tangents if not present and convert into TangentVertex format for shaders.
- Parameters
-
device | The Device containing the mesh |
mesh | The mesh to be manipulated |
weldVertexes | Weld vertexes before generating tangents. Useful for organic objects, stones, trees, etc. (anything with a lot of round surfaces). If a lot of single faces are not connected on the texture (e.g. rockets, buildings, etc.) do not use. |
◆ Optimize()
static void OmegaEngine.Graphics.MeshHelper.Optimize |
( |
Mesh |
mesh | ) |
|
|
inlinestatic |
Performs an in-place optimization of a Mesh.
- Parameters
-
mesh | The Mesh to be optimized. |
The documentation for this class was generated from the following file:
- OmegaEngine/Graphics/MeshHelper.cs