Struct GeometryDrawStateData
Data container for meshes and skinned meshes rendering with minimal state caching. Used to update previous world transformation matrix for motion vectors pass and handle LOD transitions blending.
Assembly: FlaxEngine.dll
File: Engine/Renderer/DrawCall.h
Syntax
public struct GeometryDrawStateData
Fields
LODTransition
The LOD transition timer. Value 255 means the end of the transition (aka no transition), value 0 means transition started. Interpolated between 0-255 to smooth transition over several frames and reduce LOD changing artifacts.
Declaration
public byte LODTransition = 255
Field Value
byte
|
PrevFrame
The previous frame index. In sync with Engine::FrameCount used to detect new frames and rendering gaps to reset state.
Declaration
public uint64 PrevFrame = 0
Field Value
uint64
|
PrevLOD
The previous frame model LOD index used. It's locked during LOD transition to cache the transition start LOD.
Declaration
public char PrevLOD = -1
Field Value
char
|
PrevWorld
The previous frame world transformation matrix for the given geometry instance.
Declaration
public Matrix PrevWorld = Matrix::Identity
Field Value
Matrix
|