30 lines
619 B
C++
30 lines
619 B
C++
#ifndef MESHDRAWCOMMAND_H
|
|
#define MESHDRAWCOMMAND_H
|
|
|
|
#include <glm/mat4x4.hpp>
|
|
|
|
#include <destrum/Graphics/ids.h>
|
|
|
|
#include <destrum/Graphics/Frustum.h>
|
|
|
|
|
|
struct MeshDrawCommand {
|
|
MeshID meshId;
|
|
glm::mat4 transformMatrix;
|
|
|
|
// for frustum culling
|
|
Sphere worldBoundingSphere;
|
|
|
|
// If set - mesh will be drawn with overrideMaterialId
|
|
// instead of whatever material the mesh has
|
|
MaterialID materialId{NULL_MATERIAL_ID};
|
|
|
|
bool castShadow{true};
|
|
|
|
// skinned meshes only
|
|
const SkinnedMesh* skinnedMesh{nullptr};
|
|
std::uint32_t jointMatricesStartIndex;
|
|
};
|
|
|
|
#endif //MESHDRAWCOMMAND_H
|