Skip to content
Paweł Waligóra edited this page Sep 7, 2024 · 5 revisions

fieldc, fieldc2, fieldc4, fieldc8

preamble key-word since v1.0.0

fields in single entry

Behaviour in main preamble.

Outputs how many fields are in each of the buffers single entry.

Example

fieldc
; vertex.x vertex.y vertex.z
; uv.x uv.y
; indice.0 indice.1 indices.2

Suppose processed mesh has 12 vertices and 6 indices. fieldc key-word will produce following values: 3, 2, 3.

Behaviour in buffer preamble.

Outputs how many fields are in the buffer's single entry.

Example


fieldc ; vertex.x vertex.y vertex.z
fieldc ; uv.x uv.y
fieldc ; indice.0 indice.1 indices.2

Suppose processed mesh has 12 vertices and 6 indices. fieldc key-words will produce following values: 3 in 1st buffer, 2 in 2nd buffer and 3 in 3rd buffer.

Clone this wiki locally