Skip to content
Paweł Waligóra edited this page Sep 17, 2024 · 1 revision

fieldu

preamble key-word since v2.0.0

Can only be defined in main preamble.

fields in unit.

Behaviour

Outputs how many fields in total a unit will put in a resulting output file.

Example

begin file a.out
fieldu
; vertex.x vertex.y vertex.z
; uv.x uv.y
; indice.0 indice.1 indices.2
end

Suppose processed mesh has 12 vertices and 6 indices. fieldu key-word will produce value of: 12×3 + 12×2 + 6×3 = 78.

Clone this wiki locally