More minor code style tweaks (remove extra blank lines, etc.)
このコミットが含まれているのは:
1 親
8be9203a1c
コミット
f2ed8a2d3b
22ファイル変更
+39
-38
検索条件に一致するファイルはありません
@@ -163,7 +163,6 @@ internal readonly partial struct ExtrudedTruchetPattern : IPixelShader<float4>
|
||||
return Hlsl.Max(shade, 0.0f);
|
||||
}
|
||||
|
||||
|
||||
// I keep a collection of occlusion routines... OK, that sounded really nerdy. :)
|
||||
// Anyway, I like this one. I'm assuHlsl.Ming it's based on IQ's original.
|
||||
private float CalculateAO(in float3 p, in float3 n)
|
||||
|
||||
@@ -72,7 +72,6 @@ internal readonly partial struct FourColorGradient : IPixelShader<float4>
|
||||
return 0.5f + (0.5f * n);
|
||||
}
|
||||
|
||||
|
||||
/// <inheritdoc/>
|
||||
public float4 Execute()
|
||||
{
|
||||
|
||||
@@ -81,7 +81,9 @@ internal readonly partial struct MengerJourney : IPixelShader<float4>
|
||||
z = Hlsl.Abs(z);
|
||||
|
||||
if (z.X < z.Y) { z.XY = z.YX; }
|
||||
|
||||
if (z.X < z.Z) { z.XZ = z.ZX; }
|
||||
|
||||
if (z.Y < z.Z) { z.YZ = z.ZY; }
|
||||
|
||||
z = (Scale * z) - (Offset * (Scale - 1.0f));
|
||||
|
||||
@@ -109,7 +109,6 @@ internal readonly partial struct PyramidPattern : IPixelShader<float4>
|
||||
return 1.0f - Hlsl.Max(p.X, p.Y);
|
||||
}
|
||||
|
||||
|
||||
// Standard function-based bump mapping function, with an edge value included for good measure
|
||||
private float3 DoBumpMap(in float2 p, in float3 n, float bumpfactor, ref float edge)
|
||||
{
|
||||
@@ -131,7 +130,6 @@ internal readonly partial struct PyramidPattern : IPixelShader<float4>
|
||||
return Hlsl.Normalize(n + (grad * bumpfactor));
|
||||
}
|
||||
|
||||
|
||||
// A hatch-like algorithm, or a stipple... or some kind of textured pattern
|
||||
private float DoHatch(float2 p, float res)
|
||||
{
|
||||
|
||||
@@ -185,6 +185,7 @@ internal static unsafe class Win32ApplicationRunner
|
||||
{
|
||||
isPaused = false;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする