cesium icon indicating copy to clipboard operation
cesium copied to clipboard

Handle `noData` values when accessing metadata values

Open jjhembd opened this issue 3 years ago • 0 comments

The schema for 3DTiles metadata specifies a noData value to signal entities where a metadata property is not present.

#10520 exposed the noData and default value via the metadataClass struct inside a CustomShader, so that CustomShader authors can write their own code to handle these values.

We want to handle this automatically when accessing metadata properties. If the noData value is encountered, accessing the property should automatically return the default value from metadataClass.

jjhembd avatar Sep 19 '22 15:09 jjhembd