Class ModelData
Data container for model metadata and LODs.
Inheritance
ModelData
Assembly: FlaxEngine.dll
File: Engine/Graphics/Models/ModelData.h
Syntax
public class ModelData
Fields
Animations
The node animations.
Declaration
public Array<AnimationData> Animations
Field Value
Array<AnimationData>
|
LODs
Array with all Level Of Details that contain meshes. The first element is the top most LOD0 followed by the LOD1, LOD2, etc.
Declaration
public Array<ModelLodData> LODs
Field Value
Array<ModelLodData>
|
Materials
The material slots.
Declaration
public Array<MaterialSlotEntry> Materials
Field Value
Array<MaterialSlotEntry>
|
MinScreenSize
The minimum screen size to draw model (the bottom limit).
Declaration
public float MinScreenSize = 0.0f
Field Value
float
|
Nodes
The scene nodes (in hierarchy).
Declaration
public Array<ModelDataNode> Nodes
Field Value
Array<ModelDataNode>
|
Skeleton
Textures
The texture slots.
Declaration
public Array<TextureEntry> Textures
Field Value
Array<TextureEntry>
|
Methods
CalculateLODsScreenSizes()
Automatically calculates the screen size for every model LOD for a proper transitions.
Declaration
public void CalculateLODsScreenSizes()
TransformBuffer(const Matrix& matrix)
Transform a vertex buffer positions, normals, tangents and bitangents using the given matrix. Applies to all the LODs and meshes.
Declaration
public void TransformBuffer(const Matrix& matrix)
Parameters
Matrix
matrix
The matrix to use for the transformation. |