public void InitSplatMapValues() { var t1 = new global::Graphics.Software.Texture <global::Graphics.Software.Texel.A8R8G8B8>(SplatMap1.Resource9, 0); var t2 = new global::Graphics.Software.Texture <global::Graphics.Software.Texel.A8R8G8B8>(SplatMap2.Resource9, 0); // (r3448) These should be [Height, Width], but the rest of the code doesn't support non-square values anyway so I'm leaving them as they are SplatMap1Values = new Graphics.Software.Texel.A8R8G8B8[t1.Size.Width, t1.Size.Height]; splatMap2Values = new Graphics.Software.Texel.A8R8G8B8[t2.Size.Width, t2.Size.Height]; for (int i = 0; i < t1.Size.Width; i++) { for (int j = 0; j < t2.Size.Height; j++) { SplatMap1Values[i, j] = t1.Data[i, j]; SplatMap2Values[i, j] = t2.Data[i, j]; } } }
public void InitSplatMapValues() { var t1 = new global::Graphics.Software.Texture<global::Graphics.Software.Texel.A8R8G8B8>(SplatMap1.Resource9, 0); var t2 = new global::Graphics.Software.Texture<global::Graphics.Software.Texel.A8R8G8B8>(SplatMap2.Resource9, 0); // (r3448) These should be [Height, Width], but the rest of the code doesn't support non-square values anyway so I'm leaving them as they are SplatMap1Values = new Graphics.Software.Texel.A8R8G8B8[t1.Size.Width, t1.Size.Height]; splatMap2Values = new Graphics.Software.Texel.A8R8G8B8[t2.Size.Width, t2.Size.Height]; for (int i = 0; i < t1.Size.Width; i++) { for (int j = 0; j < t2.Size.Height; j++) { SplatMap1Values[i, j] = t1.Data[i, j]; SplatMap2Values[i, j] = t2.Data[i, j]; } } }