babylon.quarks - v1.0.0
    Preparing search index...

    Type Alias UVChannel

    UVChannel: 0 | 1

    Which texture coordinates a texture is sampled with, as Unity's UV channels and Niagara's ribbon UV0 / UV1:

    • 0: the particle's first UV, with the sprite sheet's cell applied: on a sheet the current frame's cell, on a trail the cell's stretch along it, on a mesh its first UV set. Read before the map's own layout and distortion, so a texture on it does not move with them.
    • 1: the particle's own UV, never moved by the sheet. The whole quad on a billboard, a stretched billboard or a beam (mirrored with the quad when it flips); on a trail U along it the way the map's runs (from the tail, or from the head with uvFromHead) and V across it; on a mesh its second UV set (instancingUVs2), or its first when it has none.

    A mesh can then repeat its picture along UV0 while a mask on UV1 runs once across its whole length, as a lightmap UV does in a game engine.