[core] Render fill-extrusion layers (#8431)

This commit is contained in:
Lauren Budorick
2017-04-27 15:56:55 -07:00
committed by GitHub
parent 839ad87f37
commit f6e79d7073
111 changed files with 4855 additions and 235 deletions

View File

@@ -57,8 +57,9 @@ void Source::Impl::invalidateTiles() {
}
void Source::Impl::startRender(algorithm::ClipIDGenerator& generator,
const mat4& projMatrix,
const TransformState& transform) {
const mat4& projMatrix,
const mat4& clipMatrix,
const TransformState& transform) {
if (type == SourceType::Vector ||
type == SourceType::GeoJSON ||
type == SourceType::Annotations) {
@@ -67,8 +68,7 @@ void Source::Impl::startRender(algorithm::ClipIDGenerator& generator,
for (auto& pair : renderTiles) {
auto& tile = pair.second;
transform.matrixFor(tile.matrix, tile.id);
matrix::multiply(tile.matrix, projMatrix, tile.matrix);
tile.calculateMatrices(projMatrix, clipMatrix, transform);
}
}