|
Unravel Engine C++ Reference
|
Optional retained render data consumed by the model submit paths. More...
#include <model.h>
Public Attributes | |
| const submesh_render_proxies * | proxies {nullptr} |
| const std::vector< material::sptr > * | material_overrides {nullptr} |
| bool | shadow_pass {false} |
Optional retained render data consumed by the model submit paths.
All members are optional; default-constructed extras reproduce the legacy behavior.
| const std::vector<material::sptr>* unravel::model_submit_extras::material_overrides {nullptr} |
| 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.
| 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.