Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.
Silence IDE0305.
This commit is contained in:
committed by
Pavel Penev
parent
0740991c12
commit
79454d8fd2
@@ -44,22 +44,22 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
public sealed class ModelRenderer : IDisposable, IRenderer, INotifyActorDisposing
|
||||
{
|
||||
// Static constants
|
||||
static readonly float[] ShadowDiffuse = new float[] { 0, 0, 0 };
|
||||
static readonly float[] ShadowAmbient = new float[] { 1, 1, 1 };
|
||||
static readonly float[] ShadowDiffuse = [0, 0, 0];
|
||||
static readonly float[] ShadowAmbient = [1, 1, 1];
|
||||
static readonly float2 SpritePadding = new(2, 2);
|
||||
static readonly float[] ZeroVector = new float[] { 0, 0, 0, 1 };
|
||||
static readonly float[] ZVector = new float[] { 0, 0, 1, 1 };
|
||||
static readonly float[] ZeroVector = [0, 0, 0, 1];
|
||||
static readonly float[] ZVector = [0, 0, 1, 1];
|
||||
static readonly float[] FlipMtx = Util.ScaleMatrix(1, -1, 1);
|
||||
static readonly float[] ShadowScaleFlipMtx = Util.ScaleMatrix(2, -2, 2);
|
||||
static readonly float[] GroundNormal = { 0, 0, 1, 1 };
|
||||
static readonly float[] GroundNormal = [0, 0, 1, 1];
|
||||
|
||||
readonly Renderer renderer;
|
||||
readonly IShader shader;
|
||||
public readonly IModelCache ModelCache;
|
||||
|
||||
readonly Dictionary<Sheet, IFrameBuffer> mappedBuffers = new();
|
||||
readonly Stack<KeyValuePair<Sheet, IFrameBuffer>> unmappedBuffers = new();
|
||||
readonly List<(Sheet Sheet, Action Func)> doRender = new();
|
||||
readonly Dictionary<Sheet, IFrameBuffer> mappedBuffers = [];
|
||||
readonly Stack<KeyValuePair<Sheet, IFrameBuffer>> unmappedBuffers = [];
|
||||
readonly List<(Sheet Sheet, Action Func)> doRender = [];
|
||||
readonly int sheetSize;
|
||||
|
||||
SheetBuilder sheetBuilderForFrame;
|
||||
@@ -156,10 +156,10 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
// Corners of the shadow quad, in shadow-space
|
||||
var corners = new float[][]
|
||||
{
|
||||
new[] { stl.X, stl.Y, 0, 1 },
|
||||
new[] { sbr.X, sbr.Y, 0, 1 },
|
||||
new[] { sbr.X, stl.Y, 0, 1 },
|
||||
new[] { stl.X, sbr.Y, 0, 1 }
|
||||
[stl.X, stl.Y, 0, 1],
|
||||
[sbr.X, sbr.Y, 0, 1],
|
||||
[sbr.X, stl.Y, 0, 1],
|
||||
[stl.X, sbr.Y, 0, 1]
|
||||
};
|
||||
|
||||
var shadowScreenTransform = Util.MatrixMultiply(cameraTransform, invShadowTransform);
|
||||
|
||||
Reference in New Issue
Block a user