/// <summary>
        /// Initialize the buffers, fill and postprocess the textures.
        /// </summary>
        /// <param name="buffers">Pixel buffers.</param>
        public void Process(ref Color[][] buffers)
        {
            InitBuffers(ref buffers);
            diagram.cubemapDirection = currentDirection;
            int height = diagram.isCubemap ? textureSettings.width : textureSettings.height;

            diagram.Fill(buffers, textureSettings.width, height);
            diagram.PostProcess(buffers, textureSettings.width, height, textureSettings.normalFormat);
        }
 /// <summary>
 /// Initialize the buffers, fill and postprocess the textures.
 /// </summary>
 /// <param name="buffers">Pixel buffers.</param>
 public void Process(ref Color[][] buffers)
 {
     InitBuffers(ref buffers);
     diagram.Fill(buffers, textureSettings.width, textureSettings.height);
     diagram.PostProcess(buffers, textureSettings.width, textureSettings.height, textureSettings.normalFormat);
 }