Skip to content

ludus::resources::SceneMesh

Ludus Wiki · API overview · Browse API

Struct

Owned immutable CPU mesh arrays. Renderer installation copies these attributes.

Declared in modules/runtime/resources/include/ludus/runtime/resources/scene.h

#include <ludus/runtime/resources/scene.h>
struct ludus::resources::SceneMesh final

Fields

Positions

foundation::Array<foundation::math::Vector3> ludus::resources::SceneMesh::Positions
Finite mesh-local positions.

Related types: foundation::Array · foundation::math::Vector3

Declared in modules/runtime/resources/include/ludus/runtime/resources/scene.h

Normals

foundation::Array<foundation::math::Vector3> ludus::resources::SceneMesh::Normals
Finite nonzero authored shading normals.

Related types: foundation::Array · foundation::math::Vector3

Declared in modules/runtime/resources/include/ludus/runtime/resources/scene.h

Texcoords

foundation::Array<foundation::math::Vector2> ludus::resources::SceneMesh::Texcoords
Finite mip-zero texture coordinates.

Related types: foundation::Array · foundation::math::Vector2

Declared in modules/runtime/resources/include/ludus/runtime/resources/scene.h

BakeTexcoords

foundation::Array<foundation::math::Vector2> ludus::resources::SceneMesh::BakeTexcoords
Stored v3 bake UVs; empty in v1/v2/v4, whose charts are implicit (see TryGetBakeChartUv).

Related types: foundation::Array · foundation::math::Vector2

Declared in modules/runtime/resources/include/ludus/runtime/resources/scene.h

Tangents

foundation::Array<foundation::math::Vector4> ludus::resources::SceneMesh::Tangents
v6 mesh-local tangent XYZ and handedness W (+1/-1), or all zero where a vertex has none; empty before v6. Layout matches graphics::renderer::MeshDescription::Tangents.

Related types: foundation::Array · foundation::math::Vector4

Declared in modules/runtime/resources/include/ludus/runtime/resources/scene.h

Indices

foundation::Array<uint32> ludus::resources::SceneMesh::Indices
Triangle list, bounded by Positions count.

Related types: foundation::Array · uint32

Declared in modules/runtime/resources/include/ludus/runtime/resources/scene.h