8#include "core/math/bounds.h"
9#include "resource/asset/material_asset.h"
10#include "resource/asset/mesh_asset.h"
12namespace Vkm::Engine {
24 MaterialHandle material;
44 bool operator==(
const ObjectDraw& other)
const {
49 bool operator!=(
const ObjectDraw& other)
const {
return !(*
this == other); }
62 std::vector<ObjectDraw> draws;
What one object is drawn with: its geometry, its material and its pose.
Definition render_objects.h:19
bool fixed
Definition render_objects.h:42
uint32_t skinCount
Bones in this object's slice of RenderView::skinMatrices.
Definition render_objects.h:31
MeshHandle mesh
The Mesh component's handle, or the level an LOD component selected.
Definition render_objects.h:23
bool waves
Definition render_objects.h:35
bool viewmodel
A Viewmodel mesh seen through the eye: drawn through CameraData::viewmodelViewProjection.
Definition render_objects.h:38
Every object the frame can draw, written once by the cull, and the lists of what each reader draws.
Definition render_objects.h:59
std::vector< uint32_t > scene
Every drawn object, camera or not, shadow casters first.
Definition render_objects.h:81
std::vector< glm::mat4 > models
World matrices.
Definition render_objects.h:60
uint64_t serial
Counts the frames the cull wrote; changed is against the one before.
Definition render_objects.h:122
std::vector< uint32_t > visible
The objects the camera sees, in object order, unsorted.
Definition render_objects.h:74
uint32_t casterCount
How many of scene cast shadows, which are its prefix.
Definition render_objects.h:86
std::vector< uint32_t > skinFirst
Per object: where its bones start in RenderView::skinMatrices.
Definition render_objects.h:69
std::vector< Math::AABB > bounds
World boxes, posed for a posed mesh.
Definition render_objects.h:61
bool allChanged
Every object may differ from the last frame's: the world or the asset graph was replaced,...
Definition render_objects.h:104
uint64_t fixedSerial
Moved by every frame the cull writes (serial) in which a fixed object (ObjectDraw::fixed) changed,...
Definition render_objects.h:115
std::vector< uint32_t > changed
The objects whose matrix, box, draw, first bone or place in the scene-wide list or its caster prefix ...
Definition render_objects.h:96