6 ms·
That applies to GLSL in general. I tried once to emulate that using C unions, but quickly realized that there's no solution for v.xz, v.xw, v.yw, etc. You can
by unsafecast 4y ago
That applies to GLSL in general. I tried once to emulate that using C unions, but quickly realized that
there's no solution for v.xz, v.xw, v.yw, etc.
You can write functions like xyz(v) and that works well enough. Even better if you have ufcs or methods.