More parallax debugging stuff.

This commit is contained in:
Pieter-Jan Briers
2019-08-29 14:36:31 +02:00
parent ffc9f10399
commit 5858de0b08
2 changed files with 35 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ namespace Content.Client.Parallax
{
private readonly List<Layer> Layers = new List<Layer>();
public static Image<Rgba32> GenerateParallax(TomlTable config, Size size, ISawmill sawmill)
public static Image<Rgba32> GenerateParallax(TomlTable config, Size size, ISawmill sawmill, List<Image<Rgba32>> debugLayerDump)
{
sawmill.Debug("Generating parallax!");
var generator = new ParallaxGenerator();
@@ -34,6 +34,7 @@ namespace Content.Client.Parallax
foreach (var layer in generator.Layers)
{
layer.Apply(image);
debugLayerDump?.Add(image.Clone());
sawmill.Debug("Layer {0} done!", count++);
}