Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support occurrences statistic for ENUM metadata in Custom Shaders #10799

Open
jjhembd opened this issue Sep 19, 2022 · 0 comments
Open

Support occurrences statistic for ENUM metadata in Custom Shaders #10799

jjhembd opened this issue Sep 19, 2022 · 0 comments

Comments

@jjhembd
Copy link
Contributor

jjhembd commented Sep 19, 2022

Metadata statistics from a 3DTiles tileset are currently stored as constants in a metadataStatistics struct. The values of this struct can be accessed in a Custom Shader from the main vsInput or fsInput structs, as follows:

float minValue = vsInput.metadataStatistics.metadataProperty.minValue;
float mean = vsInput.metadataStatistics.metadataProperty.mean;

The current struct does not support ENUM-type metadata. The schema specifies an occurrences statistic for ENUM-type properties. The occurrences statistic is a dictionary keyed on the enum name, containing the number of occurrences of that enum.

As previously discussed, occurrences should appear in the metadataStatistic struct as a new struct keyed on the enum name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants