Skip to content

Commit

Permalink
geo: i3s - support indices (visgl#5807)
Browse files Browse the repository at this point in the history
  • Loading branch information
belom88 authored May 25, 2021
1 parent 752c79f commit e55da46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/geo-layers/src/tile-3d-layer/tile-3d-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,15 @@ export default class Tile3DLayer extends CompositeLayer {

_makeSimpleMeshLayer(tileHeader, oldLayer) {
const content = tileHeader.content;
const {attributes, modelMatrix, cartographicOrigin, texture} = content;
const {attributes, indices, modelMatrix, cartographicOrigin, texture} = content;
const {getSimpleMeshLayerColor} = this.props;

const geometry =
(oldLayer && oldLayer.props.mesh) ||
new Geometry({
drawMode: GL.TRIANGLES,
attributes: getMeshGeometry(attributes)
attributes: getMeshGeometry(attributes),
indices
});

const SubLayerClass = this.getSubLayerClass('mesh', SimpleMeshLayer);
Expand Down

0 comments on commit e55da46

Please sign in to comment.