This commit is contained in:
Asuro
2025-02-11 02:23:37 +01:00
parent 5bda220695
commit 851db78d66
5 changed files with 4 additions and 4 deletions

View File

@@ -80,7 +80,6 @@ namespace Game
else
{
CreateTransform(Transform.M, {0.0f, -30.0f, 100.0f}, {}, {100.0f, 10.0f, 100.0f});
// Nothing for now
}
}
}

View File

@@ -9,7 +9,7 @@ float circle(vec2 uv, float radius)
// float result = distSq / (radius * radius);
float result = sqrt(distSq) / radius / 2;
// float result = sqrt(distSq) / radius;
// return result < 1.0;
return result < 0.4;
return clamp(1.0 - result, 0.0, 1.0);
}
@@ -41,7 +41,7 @@ float circles(vec2 uv, float level, float subLevel)
void main()
{
float baseScale = 4.0;
float baseScale = 10.0;
float2 dx = ddx(v_uv0 * baseScale);
float2 dy = ddy(v_uv0 * baseScale);
float2x2 mat = float2x2(dx, dy);
@@ -53,7 +53,8 @@ void main()
float2 freq = sqrt(float2(qq + discriminant, qq - discriminant) / 2.0);
float spacing = freq.y * exp2(2.0);
spacing *= 128.0; // TODO: check reference to see how to calculate this!
spacing = 1.0 / spacing;
spacing *= 1.0; // TODO: check reference to see how to calculate this!
float spacingLog = max(log2(spacing), 1.0);
int patternScaleLevel = floor(spacingLog);
float patternFractional = spacingLog - patternScaleLevel;