move vec to generated
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include "../Log.h"
|
||||
#include "Dither.h"
|
||||
|
||||
using namespace Generated;
|
||||
|
||||
void DitherGen(DitherData& data, int32_t recursion)
|
||||
{
|
||||
data.Points[0] = {0.0f, 0.0f};
|
||||
@@ -55,7 +57,7 @@ void DitherGen(DitherData& data, int32_t recursion)
|
||||
{
|
||||
Vec2 vec = point - data.Points[i];
|
||||
Vec2 wrappedVec{bx::mod(vec.x + 0.5f, 1.0f) - 0.5f, bx::mod(vec.y + 0.5f, 1.0f) - 0.5f};
|
||||
float curDist = wrappedVec.Magnitude();
|
||||
float curDist = Magnitude(wrappedVec);
|
||||
dist = bx::min(dist, curDist);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user