Sorry for my english.
how can i show the code generate by the node and can i write my own node Element? Can i add a uniform float var? in order to comunicate with the fragment shaders?
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
The easiest way to insert your own data into a node shader is to use vertex or object color (max of 3 floats each = 6 floats). Other than that you can either:
I wish there were a better way than the three above, but if there are, I am unaware of them.
I find a solution to export the material to GLSL and to it.
First install the plugin export to glsl. Export the material. Modify the fragment shader or vertex. For example change const to uniform, and charge the shaders.