I’m hand-converting some CG shaders to GLSL for a project I’m doing, and the XBR shaders have a construct that’s giving me a bit of trouble.
bool4 value = a < b;
if (!value)
I assume that the GLSL equivalent is one of the following, but I’m not sure which one it is, and I was hoping someone here could tell me.
Is it is?
bvec4 value = lessThan(a, b);
if (!any(value))
Or is it this?
bvec4 value = lessThan(a, b);
if (!all(value))
Thanks.