AutoMovie API
    Preparing search index...

    Interface IAutoMoviePlantingFoliage

    The leaf rule.

    Leaves retain translation, quaternion rotation and independent axis scale as full TRS occurrences. The recipe does not replace that representation with yaw-only or uniform scale; downstream Float32 and GPU conversion still has its own precision limits.

    interface IAutoMoviePlantingFoliage {
        density: number;
        minLevel: number;
        rollJitter: number;
        scaleJitter: number;
        size: IAutoMovieVector3;
    }
    Index
    density: number

    Leaves per metre of bearing branch; strictly positive.

    minLevel: number

    Lowest branch level that bears leaves; an integer >= 0.

    rollJitter: number

    Seeded roll about the bearing branch, in [0, 1]. 0 leaves every blade in the branch's own frame; 1 allows a complete turn. Rational-circle samples are blended toward identity by normalized quaternion interpolation; the angular distribution is not uniform.

    scaleJitter: number

    Seeded relative size perturbation in [0, 1); one factor multiplies all three prototype axes, preserving their proportions in representable arithmetic.

    Prototype leaf size in metres on each local axis; each strictly positive.