Skip to content

ludus::content::scene_format::BakeChartLayout

Ludus Wiki · API overview · Browse API

Struct

Allocation-free chart layout shared by tools and runtime baking. Each indexed triangle receives its own tile, so a triangle corner's chart coordinate depends only on its triangle and corner number. Version 3 producers duplicate vertices and store the coordinates; version 4 consumers duplicate vertices when they need charts and assign the same coordinates. Different placements need independent irradiance payloads because world transforms and visibility differ.

Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h

#include <ludus/content/scene_format/luscn.h>
struct ludus::content::scene_format::BakeChartLayout final

Fields

Width

uint32 ludus::content::scene_format::BakeChartLayout::Width = 0
Power-of-two atlas width in texels.

Related types: uint32

Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h

Height

uint32 ludus::content::scene_format::BakeChartLayout::Height = 0
Power-of-two atlas height in texels.

Related types: uint32

Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h

TriangleCount

uint32 ludus::content::scene_format::BakeChartLayout::TriangleCount = 0
Number of densely packed row-major chart tiles.

Related types: uint32

Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h