Function createRTCModelMat

Creates an RTC model matrix from a full-precision modeling matrix and an RTC center.

This function transforms a modeling matrix, which may include very large translations, into an RTC model matrix. The RTC model matrix applies transformations relative to the RTC center, which helps with the efficient handling of large-scale data.

  • Parameters

    • matrix: Mat4

      The absolute modeling matrix, which may contain large translations.

    • rtcCenter: Vec3

      The RTC center coordinates, used to compute the RTC-relative transformation.

    • OptionalrtcModelMatrix: Mat4

      Returns the RTC model matrix.

    Returns Mat4

    The RTC model matrix.