![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Alexande Daubricourt |
Hi,
I have several pixel art images to superpose in a single image (texture / frame).
But it looks blurry even tough the import is set to pixel art.
Screen:
At the left: the texture “created” and at the right another texture with the same settings as the images took to create the left one.
Code:
var frame = new Image();
for (var x = 0; x < head.GetWidth(); x++)
{
for (var y = 0; y < head.GetHeight(); y++)
{
var pixel = head.GetPixel(x, y);
frame.SetPixel(x, y, frame.GetPixel(x, y).Blend(pixel));
}
}
// Same for other parts..
var texture = new ImageTexture();
texture.CreateFromImage(frame);
return texture;
Images used:
Thanks guys !