Removed multiline variable declarations

このコミットが含まれているのは:
Sergio Pedri committed 2021-11-06 23:05:49 +01:00
1 親 6fa7464f84
コミット ee0d3a7b68
31ファイル変更
+182 -194

検索条件に一致するファイルはありません

+4 -4
ファイルの表示
@@ -17,7 +17,8 @@ internal readonly partial struct PyramidPattern : IPixelShader<float4>
// Standard 2D rotation formula.
private static float2x2 Rotate2x2(in float a)
{
float c = Hlsl.Cos(a), s = Hlsl.Sin(a);
float c = Hlsl.Cos(a);
float s = Hlsl.Sin(a);
return new(c, -s, s, c);
}
@@ -141,9 +142,8 @@ internal readonly partial struct PyramidPattern : IPixelShader<float4>
float2 oP = p;
float m = BMap(p);
float3 n = new(0, 0, -1);
float
edge = 0.0f,
bumpFactor = 0.25f;
float edge = 0.0f;
float bumpFactor = 0.25f;
n = DoBumpMap(p, n, bumpFactor, ref edge);