Hi All!
Recently ive been getting more into HLSL coding in unreal, and I tried to create those wonderful metaballs by the even more wonderful Ryan Brucks.
video link: Custom Material Node: How to use and create Metaballs | Live Training | Unreal Engine - YouTube
Since the video is 5 years old, I doubt ill get any answer on this, but I guess ill shoot my shot anyway
I get the following error:
While checking the code at those lines, I can see that it all relates to the other custom node:
the error implies that im trying to mix up floats of different types, and low and behold, if I change the sphere initialization in the first custom node, the error is gone:
but, the big issue I have is that the distance function calculated in that first node needs the sphere radius, which is packed in the alpha of the spheres, so I need a vector 4.
Does anyone have a clue on how to solve this issue? Did something change vector math-wise since 4.11? Any help is very much appreciated, thanks