Hi,
I am trying to port this shader to Metal: Shader - Shadertoy BETA
I am having problems with this part:
// winding number from http://geomalgorithms.com/a03-_inclusion.html
bvec3 cond = bvec3( p.y>=v[i].y, p.y<v[j].y, e.x*w.y>e.y*w.x );
if( all(cond) || all(not(cond)) ) s*=-1.0;
What is the bvec3 counterpart in Metal ? I cannot find any documentation on the all() statement in the Metal spec.
Thanks for any help!
Markus