Im probably missing something blatantly obvious, but given compUVIndex and prevUVIndex are both vec4, shouldnt the following two fragments of code return the same result?
if(vec2(compUVIndex) == vec2(prevUVIndex))
{
a_point = 0;
}
else
{
a_point = 1;
}
if( (compUVIndex.x == prevUVIndex.x && compUVIndex.y == prevUVIndex.y) )
{
a_point = 0;
}
else
{
a_point = 1;
}
Yet, when I swap the codes, the results are different.
Kind regards,
Fugi