I am trying to understand why in Functions for ShaderFX there is no Float3ToFloat2.sdsl, I am trying to recreate FieldTrip on my own (for learning purposes) while following Inigo Quilez live coding video, and I am at the point where I need to create a composition with ShaderFx with the “float2 myFunk (float3)” type. So my question is, is there are particular reason there is no Float3ToFloat2 function to override it in my shader? Or how do I actually make it work.
Sorry if it cumbersome, I am not a real programmer, just learning
So in Quilez’s video, he is making “map” function (for SDF distance), but it should return not float as usual, but vector2, where is first float would be the distance (as normally sdf function does) and the second float will be an identifier (for texturing I assume).
I am writing code in editor but also patching a composition (i think that’s how it is called), for example, I have a myRayMarching node (that uses sdsl file with raymarching algorithm) to which I connect mySDF node (that is using sdsl file with SDFs and so on, inside those I use node “create GPUFunc 1->1”.