struct

MeshSubmesh

One submesh = one (mesh, material) pair within a multi-submesh model. Imported FBX/glTF often have several submeshes (body, head, hair...) each with its own material slot — every submesh is drawn as a separate draw call. hasLocalTransform lets a submesh place a SHARED mesh at its own offset under the entity (foliage tree instances) without duplicating vertices.

Module
SceneTypes
Header
#include "SceneTypes/Components/MeshRendererComponent.h"
Namespace
Mowo

Properties

TypeNameDescription
Ref<GPUMesh>gpuMesh
Material*materialDefault nullptr.
Mat4localTransformDefault Mat4(1.0f).
boolhasLocalTransformDefault false.
floatmaxDrawDistance0 = unlimited. When > 0, Scene::OnRender drops the submesh once the camera is farther than this from its world position — foliage tree meshes hand off to GPU impostor cards past r.Foliage.ImpostorDistance. Default 0.0f.
boolcollisionOnlyA UBX_/USP_/UCP_/UCX_ piece: kept so slot indices and the collision resolver still line up with the model, never drawn. Default false.
Generated from SceneTypes/Components/MeshRendererComponent.h via scenetypes.json · Nov 4, 2026Version 1.0.0