I am a complete newbie about all shader things, testing things with material node editor.
What I wanted to make was a simple box fill sprite material, getting a sprite with two colors and a fill value(0 to 1).
With some trial and errors and referring Flax Material Tour examples, I managed to make a material above with following nodes.
But I still cannot understand why Add node (red circle below) is needed instead of ‘Pack Float2’ node, which I thought the answer at the first time.
‘UVs’ input hint popup of Sample Texture node tells me that this is a Float2 value, so I tried to merge a variable of a float and a constant of a float.
But this made the Sampling node to pick only single point of a UV plane, filling the entire output plane with a single color.
What is the difference between ‘Add’ and ‘Pack xxx’?
Isn’t the ‘Add’ node memberwise vector sum?
Why ‘Sample texture’ acts totally different (UV shift vs. point capture and fill) with same(?) Float2 values?