getTransitionMatrix

Returns a specialized model matrix for supporting rendering of custom geometry during transition between the active projection and mercator projection. Transition matrix prepares points on web mercator coordinate space to be used as destination points of the interpolation operation towards mercator projection. Example: ecefPoint = latLngToEcef(60.1699, 24.9384) mercPoint = latLngToMercator(60.1699, 24.9384) clipPoint = projectionMatrix * lerp(getTransitionMatrix() * mercPoint, getModelMatrix() * ecefPoint, getTransitionPhase())