Skip to content

Commit

Permalink
PointCloudLayer colors attribute type use 'unorm8' (#8633)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixpalmer committed Mar 12, 2024
1 parent a670a0f commit 09cca5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/layers/src/point-cloud-layer/point-cloud-layer.ts
Expand Up @@ -73,7 +73,8 @@ function normalizeData(data) {
attributes.instanceNormals = attributes.NORMAL;
}
if (attributes.COLOR_0) {
attributes.instanceColors = attributes.COLOR_0;
const {size, value} = attributes.COLOR_0;
attributes.instanceColors = {size, type: 'unorm8', value};
}
}

Expand Down

0 comments on commit 09cca5e

Please sign in to comment.