Select to view content in your preferred language

"MaterialByAttribute" GitHub Sample Question

152
0
04-30-2025 07:28 AM
ws4945894
Emerging Contributor

Dear all,

perhaps someone can help me to understand the inner workings of one of the sample scenes. Specifically I have a couple of questions regarding the MaterialByAttribute sample hosted at GitHub.

First of all, the sample is working flawlessly for me and I was able to adapt it to my own needs.

But what I don't really get is how a column from an attribute table makes it into the ShaderGraph code. In the sample an attribute named "ConstructionYear" is passed to ShaderGraph and as far as I can see this is a Texture 2D.

This is something I can't get my head around how the Texture 2D can hold the data of the construction year for all features of the hosted building layer...

Could someone please help me with understanding the data flow here?

Thanks
Winfried

ConstructionYearRenderer ShaderGraphConstructionYearRenderer ShaderGraph

 

 

 

0 Kudos
0 Replies