const float K2 = 0.211324865; // (3-sqrt(3))/6;. vec2 i = floor( p + (p.x+p.y)*K1 );. vec2 a = p - i + (i.x+i.y)*K2;.
確定! 回上一頁