AutoMovie API
    Preparing search index...

    Function validateFogPlacement

    • Validate the staged atmosphere, the only check a fog gets before stageScene lowers it verbatim into the scene and the renderer's fog law reads it.

      IAutoMovieFog carries two facts and both are checked: an extinction density, per metre, that must be a finite number of at least zero, since a negative one has no extinction meaning and a non-finite one cannot be sampled; and a canonical linear color with nullable alpha and a matching optional sRGB label, checked by validateColor. Density has no upper bound: a dense fog is a look, not a mistake. The value is read as unknown, because stage is reachable in-process without the transport's structural gate, so a null fog becomes a located violation rather than a later TypeError. Violations go to out at <path>, <path>.density, <path>.color and <path>.color.<channel>.

      Ordinary JSON objects that shadow string-conversion methods still produce located density or color findings; failed conversion uses an uninspectable value in the message while retaining the authored value. Throwing property accessors and nonterminating conversion hooks are outside this admission guarantee.

      Parameters

      • fog: unknown

        The authored fog, unchecked.

      • path: string

        Violation path of the fog.

      • out: IAutoMovieViolationCollector

        Collector the violations are appended to.

      Returns void