Lysa  0.0
Lysa 3D Engine
InstanceData Struct Reference

Detailed Description

A single draw instance.

Indices reference engine-wide arrays for mesh instances, mesh surfaces and materials, allowing shaders to fetch additional data.

Public Attributes

uint32 meshInstanceIndex
 
uint32 meshSurfaceIndex
 
uint32 materialIndex
 
uint32 meshSurfaceMaterialIndex
 

Member Data Documentation

uint32 materialIndex

Index of the material used by this instance.

uint32 meshInstanceIndex

Index of the MeshInstance in the global instances array.

uint32 meshSurfaceIndex

Index of the mesh surface within the global surfaces array.

uint32 meshSurfaceMaterialIndex

Index of the mesh-surface-local material slot.