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

how i can get metadata in shader #11450

Closed
chen21439 opened this issue Aug 3, 2023 · 2 comments
Closed

how i can get metadata in shader #11450

chen21439 opened this issue Aug 3, 2023 · 2 comments

Comments

@chen21439
Copy link

image

https://sandcastle.cesium.com/?src=Custom%20Shaders%203D%20Tiles.html&label=3D%20Tiles%20Next

in this example each building have metadata like BIN,but how i can get it in shader

              vertexShaderText: `
        void vertexMain(VertexInput vsInput, inout czm_modelVertexOutput vsOutput)
        {
        int featureId = vsInput.featureIds.featureId_0;
        vsInput.metadata.BIN;
        }
        `

when i add vsInput.metadata.BIN in shader,it fail to compile

@chen21439
Copy link
Author

@lilleyse @ptrgags can you give me some advice

@lilleyse
Copy link
Contributor

lilleyse commented Aug 3, 2023

@chen21439 Property tables aren't supported in custom shaders yet. See #10480 and #9572 for more details.

For now you'll need to do this with a Cesium3DTileStyle.

I'll close this issue for now and leave a comment in #9572

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

No branches or pull requests

3 participants