Hello,
I want to take the float value from Geometry nodes [see picture] and pass it to shader editor.
The most important thing is, that I need to make some math on this value in Geo nodes before I transfer it to shader editor.
I tried attributes but, I suppose, I made it wrong, because nothing works.
In short - I want to control value in my material by tweaking it on my Geo Nodes panel in modifier tab.
Alright,
thank you very much silex and silververtex for your help.
I think it didn’t work for me because I had Integer as input.
It works with float tho.
Is there any way to make it work with integer as input?
Also, does it matter if the material is on different object? Not the one with geonodes on?
Inside Geometry Nodes open N panel and hit ‘Group’ tab. Inside you will find all sockets with their preferences. Then you can change socket from float to integer or anything else:
It works for me in a newly created file but it doesn’t in my project.
It doesn’t even work without any math. Just input to output.
Sadly I can’t send you blend. file of this because of non-disclosure agreement.
I have no idea what’s wrong tbh.
We assign and transfer vertex attributes from the cube through the Data Transfer modifier and, if we created a new material, then we specify the same attribute in the material as on the cube
The result, I think, will be identical on a copy of the cube, but the more the shape of Another mesh differs, the stronger the differences in color distribution will be, but with the preservation of the “type” of data distribution, which is set in the geometric nodes of the cube