Hi!
I'm trying to use an IF statement to select all the vertices in the 0 to 1 UV space (u and v). So how can I do these conditions within one If statement:
group:
- u > 0
- u < 1
-v > 0
-v < 1
Thanks for any help!
-Olivier
if( (u > 0) && (u < 1) && (v > 0) && (v < 1) )
{
// do something
}
if((@uv.x > 0) && (@uv.x < 1) && (@uv.y > 0) && (@uv.y < 1)) { @group_center = 1; }
if(dot > 1-tresh) { @group_sides = 1; } if(dot < -1+tresh) { @group_sides = 1; }
olivierth
For example, how can I simplify those 2 IF statements into a single one: