Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::model_submit_extras Struct Reference

Optional retained render data consumed by the model submit paths. More...

#include <model.h>

Public Attributes

const submesh_render_proxiesproxies {nullptr}
 
const std::vector< material::sptr > * material_overrides {nullptr}
 
bool shadow_pass {false}
 

Detailed Description

Optional retained render data consumed by the model submit paths.

All members are optional; default-constructed extras reproduce the legacy behavior.

Definition at line 253 of file model.h.

Member Data Documentation

◆ material_overrides

const std::vector<material::sptr>* unravel::model_submit_extras::material_overrides {nullptr}

Per-submesh material overrides indexed by submesh index. Null entries use the model material for the submesh's data group.

Definition at line 264 of file model.h.

◆ proxies

const submesh_render_proxies* unravel::model_submit_extras::proxies {nullptr}

Cached world-space per-submesh bounds (owned by model_component and refreshed with the pose data). When available, per-submesh frustum culling and per-submesh LOD selection use cheap AABB tests against these bounds - including skinned submeshes, whose bounds track the animated pose. Submeshes without cached bounds fall back to the legacy OBB classification (large meshes) or are conservatively drawn.

Definition at line 260 of file model.h.

◆ shadow_pass

bool unravel::model_submit_extras::shadow_pass {false}

True when submitting into a shadow pass. Instances flagged as not casting shadows (see submesh_pose_mat4::transform_index::casts_shadow) are skipped.

Definition at line 268 of file model.h.


The documentation for this struct was generated from the following file: