Loading custom data into custom shader uniform #2686
Unanswered
trinhtuanlong
asked this question in
Support Q&A
Replies: 1 comment 6 replies
-
There is nothing in osgEarth to support this. What are you planning to do in the shader? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a shape file containing the buildings in the map I want to render. I have manipulated the shape file to add an additional tag to each building specifying the material of that building (glass, concrete,...). Now I want to load this information as a uniform into my custom shader and use it there (say glass is int 1, concrete is int 2,...). All of this must be done using the API and no .earth files. How do I do this? I have looked at all the examples but there does not seem to be anything similar.
Beta Was this translation helpful? Give feedback.
All reactions