Skip to content

Commit 5a17eb4

Browse files
committed
shader write
1 parent c044476 commit 5a17eb4

3 files changed

Lines changed: 500 additions & 318 deletions

File tree

CathodeLib/Scripts/CATHODE/Materials.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ override protected bool LoadInternal()
6767
material.TextureReferences[x] = texRef;
6868
}
6969
reader.BaseStream.Position += 8;
70-
List<int> cstIndexes = new List<int>();
71-
for (int x = 0; x < 5; x++) cstIndexes.Add(reader.ReadInt32());
70+
int[] cstIndexes = Utilities.ConsumeArray<int>(reader, 5);
7271
for (int x = 0; x < 5; x++)
7372
{
7473
int cstCount = reader.ReadByte();

0 commit comments

Comments
 (0)